mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
opengl: Fix love_PixelCoord and love_ScreenSize in shaders.
Fixes #1866.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user