Skip to content

Commit

Permalink
properly initialize the texture with 0
Browse files Browse the repository at this point in the history
Signed-off-by: Umair Khan <omerjerk@gmail.com>
  • Loading branch information
omerjerk committed Jul 28, 2015
1 parent 840d090 commit 1df62ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/in/omerjerk/processing/video/android/VideoBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ protected void prepareFrameBuffers() {
GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, customTexture.get(0));
GlUtil.checkGlError("glBindTexture");

int[] glColor = new int[16*16];
int[] glColor = new int[width*height];
Arrays.fill(glColor, 0);
IntBuffer texels = allocateDirectIntBuffer(16 * 16);
IntBuffer texels = allocateDirectIntBuffer(width*height);
texels.put(glColor);
texels.rewind();
/*
Expand Down

0 comments on commit 1df62ce

Please sign in to comment.