mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Bug fix: orthogonal projection matrix
This commit is contained in:
parent
8ae31a35dc
commit
a70cca8a9f
@ -186,7 +186,7 @@ func (context *Context) projectionMatrix() [16]float32 {
|
||||
var e11, e22, e41, e42 float32
|
||||
if texture != context.mainFramebufferTexture {
|
||||
e11 = float32(2) / float32(texture.textureWidth)
|
||||
e22 = float32(2) / float32(texture.textureWidth)
|
||||
e22 = float32(2) / float32(texture.textureHeight)
|
||||
e41 = -1
|
||||
e42 = -1
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user