Skip to content

Commit 1df62ce

Browse files
committed
properly initialize the texture with 0
Signed-off-by: Umair Khan <[email protected]>
1 parent 840d090 commit 1df62ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/in/omerjerk/processing/video/android/VideoBase.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ protected void prepareFrameBuffers() {
123123
GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, customTexture.get(0));
124124
GlUtil.checkGlError("glBindTexture");
125125

126-
int[] glColor = new int[16*16];
126+
int[] glColor = new int[width*height];
127127
Arrays.fill(glColor, 0);
128-
IntBuffer texels = allocateDirectIntBuffer(16 * 16);
128+
IntBuffer texels = allocateDirectIntBuffer(width*height);
129129
texels.put(glColor);
130130
texels.rewind();
131131
/*

0 commit comments

Comments
 (0)