Bug fix: orthogonal projection matrix

This commit is contained in:
Hajime Hoshi 2013-10-19 01:02:44 +09:00
parent 8ae31a35dc
commit a70cca8a9f

View File

@ -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 {