mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
internal/graphicsdriver/opengl: fix comments
This commit is contained in:
parent
a5993f09a2
commit
1b3696a7ff
@ -216,7 +216,7 @@ func (g *Graphics) DrawTriangles(dstID graphicsdriver.ImageID, srcIDs [graphics.
|
||||
g.uniformVars[i].typ = shader.ir.Uniforms[i]
|
||||
}
|
||||
|
||||
// In OpenGL, the NDC's Y direction (upward), so flip the Y direction for the final framebuffer.
|
||||
// In OpenGL, the NDC's Y direction is upward, so flip the Y direction for the final framebuffer.
|
||||
if destination.screen {
|
||||
const idx = graphics.ProjectionMatrixUniformVariableIndex
|
||||
g.uniformVars[idx].value[1] *= -1
|
||||
|
Loading…
Reference in New Issue
Block a user