mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Update gfxGLDevice.cpp
clearing the active program caused issues during a target bake as we call glClear after setting the shader etc. As this warning id 131204 seems to be a product of doing this, everything i read up on it says it is safe to silence it.
This commit is contained in:
parent
93b5a8d22e
commit
02b3f3d0a1
1 changed files with 6 additions and 4 deletions
|
|
@ -104,6 +104,12 @@ 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
|
||||||
|
// but leave programs active when rendering to a target
|
||||||
|
// this produces a warning during glClear
|
||||||
|
if (id == 131204)
|
||||||
|
return;
|
||||||
|
|
||||||
const char* srcStr = "UNKNOWN";
|
const char* srcStr = "UNKNOWN";
|
||||||
const char* typeStr = "UNKNOWN";
|
const char* typeStr = "UNKNOWN";
|
||||||
const char* sevStr = "UNKNOWN";
|
const char* sevStr = "UNKNOWN";
|
||||||
|
|
@ -640,10 +646,6 @@ void GFXGLDevice::copyResource(GFXTextureObject* pDst, GFXCubemap* pSrc, const U
|
||||||
|
|
||||||
void GFXGLDevice::clear(U32 flags, const LinearColorF& color, F32 z, U32 stencil)
|
void GFXGLDevice::clear(U32 flags, const LinearColorF& color, F32 z, U32 stencil)
|
||||||
{
|
{
|
||||||
glUseProgram(0);
|
|
||||||
mCurrentShader = NULL;
|
|
||||||
mCurrentConstBuffer = NULL;
|
|
||||||
|
|
||||||
// Make sure we have flushed our render target state.
|
// Make sure we have flushed our render target state.
|
||||||
_updateRenderTargets();
|
_updateRenderTargets();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue