mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 06:31:47 +00:00
OpenGL2: Don't bind null framebuffers when not using framebuffers.
This commit is contained in:
parent
c68e471430
commit
730207817e
2 changed files with 9 additions and 1 deletions
|
@ -230,6 +230,12 @@ FBO_Bind
|
|||
*/
|
||||
void FBO_Bind(FBO_t * fbo)
|
||||
{
|
||||
if (!glRefConfig.framebufferObject)
|
||||
{
|
||||
ri.Printf(PRINT_WARNING, "FBO_Bind() called without framebuffers enabled!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if (glState.currentFBO == fbo)
|
||||
return;
|
||||
|
||||
|
|
|
@ -951,6 +951,8 @@ void GL_SetDefaultState( void )
|
|||
qglColor4f (1,1,1,1);
|
||||
|
||||
GL_BindNullTextures();
|
||||
|
||||
if (glRefConfig.framebufferObject)
|
||||
GL_BindNullFramebuffers();
|
||||
|
||||
qglEnable(GL_TEXTURE_2D);
|
||||
|
|
Loading…
Reference in a new issue