Update gfxGLDevice.cpp

This commit is contained in:
marauder2k7 2026-04-10 16:48:30 +01:00
parent 02b3f3d0a1
commit dead75f458

View file

@ -57,6 +57,9 @@
#include "gfx/gl/tGL/tXGL.h" #include "gfx/gl/tGL/tXGL.h"
#endif #endif
// #131204 - Texture state usage warning: The texture object (0) bound to texture image unit 0
#define GL_LOW_WARN_TEXTURE_STATE 131204
GFXAdapter::CreateDeviceInstanceDelegate GFXGLDevice::mCreateDeviceInstance(GFXGLDevice::createInstance); GFXAdapter::CreateDeviceInstanceDelegate GFXGLDevice::mCreateDeviceInstance(GFXGLDevice::createInstance);
GFXDevice *GFXGLDevice::createInstance( U32 adapterIndex ) GFXDevice *GFXGLDevice::createInstance( U32 adapterIndex )
@ -104,10 +107,8 @@ void APIENTRY glDebugCallback(
if (severity == GL_DEBUG_SEVERITY_NOTIFICATION) if (severity == GL_DEBUG_SEVERITY_NOTIFICATION)
return; return;
// This warning id appears safe to ignore, we clear states // Silence: Texture state usage warning: The texture object (0) bound to texture image unit 0
// but leave programs active when rendering to a target if (id == GL_LOW_WARN_TEXTURE_STATE)
// this produces a warning during glClear
if (id == 131204)
return; return;
const char* srcStr = "UNKNOWN"; const char* srcStr = "UNKNOWN";