Fix build on travis
This commit is contained in:
parent
00049f2f04
commit
5a212989df
@ -300,6 +300,7 @@ SetTexture(GLMesh &mesh, unsigned i, bool isSrgb)
|
|||||||
if (!mesh.textures[i])
|
if (!mesh.textures[i])
|
||||||
mesh.textures[i] = getUnicolorTexture(video::SColor(255, 255, 255, 255));
|
mesh.textures[i] = getUnicolorTexture(video::SColor(255, 255, 255, 255));
|
||||||
compressTexture(mesh.textures[i], isSrgb);
|
compressTexture(mesh.textures[i], isSrgb);
|
||||||
|
#ifdef Bindless_Texture_Support
|
||||||
if (UserConfigParams::m_azdo)
|
if (UserConfigParams::m_azdo)
|
||||||
{
|
{
|
||||||
if (!mesh.TextureHandles[i])
|
if (!mesh.TextureHandles[i])
|
||||||
@ -307,6 +308,7 @@ SetTexture(GLMesh &mesh, unsigned i, bool isSrgb)
|
|||||||
if (!glIsTextureHandleResidentARB(mesh.TextureHandles[i]))
|
if (!glIsTextureHandleResidentARB(mesh.TextureHandles[i]))
|
||||||
glMakeTextureHandleResidentARB(mesh.TextureHandles[i]);
|
glMakeTextureHandleResidentARB(mesh.TextureHandles[i]);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void InitTextures(GLMesh &mesh, MeshMaterial Mat)
|
void InitTextures(GLMesh &mesh, MeshMaterial Mat)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user