Fixed invocation of updatePixelsImpl() in PImage

This commit is contained in:
codeanticode
2012-03-29 19:32:39 +00:00
parent 1df01edee5
commit bfd10fc995
2 changed files with 3 additions and 3 deletions
@@ -769,7 +769,7 @@ public class PTexture implements PConstants {
pgl.glTexImage2D(glTarget, 0, glFormat, glWidth, glHeight, 0, PGL.GL_RGBA, PGL.GL_UNSIGNED_BYTE, null);
// Makes sure that the texture buffer in video memory doesn't contain any garbage.
pgl.initTexture(glTarget, width, height, PGL.GL_RGBA, PGL.GL_UNSIGNED_BYTE);
pgl.initTexture(glTarget, PGL.GL_RGBA, width, height);
pgl.glBindTexture(glTarget, 0);
pgl.disableTexturing(glTarget);