diff --git a/gpuv/src/main/java/com/daasuu/gpuv/egl/GlFrameBufferObjectRenderer.java b/gpuv/src/main/java/com/daasuu/gpuv/egl/GlFrameBufferObjectRenderer.java index 3a069ac..1ff39bc 100644 --- a/gpuv/src/main/java/com/daasuu/gpuv/egl/GlFrameBufferObjectRenderer.java +++ b/gpuv/src/main/java/com/daasuu/gpuv/egl/GlFrameBufferObjectRenderer.java @@ -2,6 +2,7 @@ import android.opengl.GLES20; import android.opengl.GLSurfaceView; +import android.util.Log; import com.daasuu.gpuv.egl.filter.GlFilter; @@ -60,6 +61,7 @@ public final void onDrawFrame(final GL10 gl) { GLES20.glBindFramebuffer(GL_FRAMEBUFFER, 0); GLES20.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + GLES20.glViewport(0, 0, framebufferObject.getWidth(), framebufferObject.getHeight()); normalShader.draw(framebufferObject.getTexName(), null); }