From 15ccb5cd4844c70140d7ca0fc364b50b6a335277 Mon Sep 17 00:00:00 2001 From: XProger Date: Sat, 13 Oct 2018 07:04:21 +0300 Subject: [PATCH] fix black textures back after loading --- src/gapi_gl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gapi_gl.h b/src/gapi_gl.h index b2668ac..ddd65df 100644 --- a/src/gapi_gl.h +++ b/src/gapi_gl.h @@ -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;