1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-14 17:14:29 +02:00

fix black textures back after loading

This commit is contained in:
XProger
2018-10-13 07:04:21 +03:00
parent afcf91bcb1
commit 15ccb5cd48

View File

@@ -543,6 +543,8 @@ namespace GAPI {
bool isShadow = fmt == FMT_SHADOW;
glGenTextures(1, &ID);
Core::active.textures[0] = NULL;
bind(0);
GLenum target = cube ? GL_TEXTURE_CUBE_MAP : GL_TEXTURE_2D;