mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Update gfxGLDevice.cpp
This commit is contained in:
parent
02b3f3d0a1
commit
dead75f458
1 changed files with 5 additions and 4 deletions
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue