opengl: Fix love_PixelCoord and love_ScreenSize in shaders.

Fixes #1866.
This commit is contained in:
Sasha Szpakowski
2022-11-25 23:27:04 -04:00
parent b738668e9c
commit 6599697835
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -469,7 +469,7 @@ bool Shader::loadVolatile()
// love::graphics::Shader sets up the shader code-side of this.
auto gfx = Module::getInstance<love::graphics::Graphics>(Module::M_GRAPHICS);
if (gfx != nullptr)
splitUniformsPerDraw = gfx->getCapabilities().features[Graphics::FEATURE_PIXEL_SHADER_HIGHP];
splitUniformsPerDraw = !gfx->getCapabilities().features[Graphics::FEATURE_PIXEL_SHADER_HIGHP];
// zero out active texture list
textureUnits.clear();