diff --git a/src/in/omerjerk/processing/video/android/VideoBase.java b/src/in/omerjerk/processing/video/android/VideoBase.java index 6e628b7..1972628 100644 --- a/src/in/omerjerk/processing/video/android/VideoBase.java +++ b/src/in/omerjerk/processing/video/android/VideoBase.java @@ -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(); /*