mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-24 22:59:24 +00:00
* [OpenGL] BugFix: Correct shader errors being thrown during the load phase due to direct use of glUseProgram causing desync with GFXGLDevice.
This commit is contained in:
parent
328319b853
commit
c8a5ccb191
3 changed files with 10 additions and 6 deletions
|
|
@ -933,7 +933,7 @@ void GFXGLDevice::setupGenericShaders( GenericShaderType type )
|
|||
}
|
||||
GFXShader* GFXGLDevice::createShader()
|
||||
{
|
||||
GFXGLShader* shader = new GFXGLShader();
|
||||
GFXGLShader* shader = new GFXGLShader(this);
|
||||
shader->registerResourceWithDevice( this );
|
||||
return shader;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue