diff --git a/project/toolkit/jpeg/files.xml b/project/toolkit/jpeg/files.xml index ab7780772..8b3afacbd 100644 --- a/project/toolkit/jpeg/files.xml +++ b/project/toolkit/jpeg/files.xml @@ -5,6 +5,7 @@ + diff --git a/src/nme/gl/ProgramTPosUniformCol.hx b/src/nme/gl/ProgramTPosUniformCol.hx index e062c48ca..999311f1c 100644 --- a/src/nme/gl/ProgramTPosUniformCol.hx +++ b/src/nme/gl/ProgramTPosUniformCol.hx @@ -47,7 +47,7 @@ class ProgramTPosUniformCol extends ProgramBase var fragShader = #if !desktop 'precision mediump float;' + #end - "uniform vec4 col = vec4(1.0, 0.0, 0.0, 1.0);" + + "uniform vec4 col;" + "void main() {" + "gl_FragColor = col;"+ "}"; @@ -74,6 +74,7 @@ class ProgramTPosUniformCol extends ProgramBase GL.drawArrays(primType, 0, primCount); GL.disableVertexAttribArray(posLocation); + GL.bindBuffer(GL.ARRAY_BUFFER, null); }