mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
graphicsdriver/opengl: Bug fix: variables can be optimized out
This commit is contained in:
parent
189b8a17e9
commit
85df49dc96
@ -157,6 +157,8 @@ void main(void) {
|
||||
#if defined(FILTER_SCREEN)
|
||||
highp vec2 p0 = pos - texel_size / 2.0 / scale;
|
||||
highp vec2 p1 = pos + texel_size / 2.0 / scale;
|
||||
// Prevent this variable from being optimized out.
|
||||
p0 += varying_tex_region.xy - varying_tex_region.xy;
|
||||
|
||||
p1 = adjustTexel(p0, p1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user