mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-10-26 05:46:04 +03:00
fix(font): add temporary workaround for scroll frames rendering
This commit is contained in:
parent
838558115d
commit
d955f0cbd2
@ -925,7 +925,7 @@ LPDIRECT3DVERTEXBUFFER9 CGxDeviceD3d::ICreateD3dVB(EGxPoolUsage usage, uint32_t
|
||||
|
||||
LPDIRECT3DVERTEXBUFFER9 vertexBuf = nullptr;
|
||||
|
||||
if (SUCCEEDED(this->m_d3dDevice->CreateVertexBuffer(size, d3dUsage, D3DFMT_INDEX16, d3dPool, &vertexBuf, nullptr))) {
|
||||
if (SUCCEEDED(this->m_d3dDevice->CreateVertexBuffer(size, d3dUsage, 0, d3dPool, &vertexBuf, nullptr))) {
|
||||
return vertexBuf;
|
||||
}
|
||||
|
||||
|
||||
@ -139,9 +139,9 @@ void BATCHEDRENDERFONTDESC::RenderBatch() {
|
||||
this->m_face->m_textureCache[i].UpdateDirty();
|
||||
}
|
||||
|
||||
int32_t maxBatchCapacity = 2048;
|
||||
const int32_t maxBatchCapacity = 4096; // WORKAROUND! It should be 2048;
|
||||
|
||||
CGxBuf* vertexStream = g_theGxDevicePtr->BufStream(GxPoolTarget_Vertex, 0x18, maxBatchCapacity);
|
||||
CGxBuf* vertexStream = g_theGxDevicePtr->BufStream(GxPoolTarget_Vertex, sizeof(CGxVertexPCT), maxBatchCapacity);
|
||||
char* vertexData = g_theGxDevicePtr->BufLock(vertexStream);
|
||||
CGxVertexPCT* vertexBuf = reinterpret_cast<CGxVertexPCT*>(vertexData);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user