Skip to content

Commit

Permalink
Revert "#6351: remove RenderSystem::setShaderProgramsAvailable()". Th…
Browse files Browse the repository at this point in the history
…e removal of the check getCurrentShaderProgram() != SHADER_PROGRAM_NONE caused the GLSL programs to be created at the wrong point in time (in Windows at least).

This reverts commit 98b7058.
  • Loading branch information
codereader committed Jan 13, 2024
1 parent cd0675d commit 539891c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radiantcore/rendersystem/OpenGLRenderSystem.cpp
Expand Up @@ -213,8 +213,8 @@ void OpenGLRenderSystem::realise()

_realised = true;

// Make sure we realise the shaders even if a shader program is not active to begin with
if (shaderProgramsAvailable()) {
if (shaderProgramsAvailable() && getCurrentShaderProgram() != SHADER_PROGRAM_NONE)
{
_glProgramFactory->realise();
}

Expand Down

0 comments on commit 539891c

Please sign in to comment.