mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 12:25:59 +03:00
fix(gx): preload all non-render-target textures in d3d backend
This commit is contained in:
parent
4af68eede9
commit
3328134c58
@ -1686,7 +1686,7 @@ UNLOCK:
|
|||||||
texels = nullptr;
|
texels = nullptr;
|
||||||
texId->m_userFunc(GxTex_Unlock, texId->m_width, texId->m_height, 0, 0, texId->m_userArg, texelStrideInBytes, texels);
|
texId->m_userFunc(GxTex_Unlock, texId->m_width, texId->m_height, 0, 0, texId->m_userArg, texelStrideInBytes, texels);
|
||||||
|
|
||||||
if (texId->m_flags.m_renderTarget) {
|
if (!texId->m_flags.m_renderTarget) {
|
||||||
auto d3dTexture = static_cast<LPDIRECT3DTEXTURE9>(texId->m_apiSpecificData);
|
auto d3dTexture = static_cast<LPDIRECT3DTEXTURE9>(texId->m_apiSpecificData);
|
||||||
d3dTexture->PreLoad();
|
d3dTexture->PreLoad();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user