From f7e7e467cee37118bfe5173f78667f87a994ae38 Mon Sep 17 00:00:00 2001 From: Liran Date: Wed, 17 Aug 2011 16:01:40 +0300 Subject: [PATCH] opengles emulator- check framebuffer status fix add drawValidate when calling glCheckFramebufferStatus in the draw validate, a color attachement will be added to the framebuffer if there is no target attached to COLOR_ATTACHMENT of the framebuffer. opengl does not allow framebuffer with no color attachement so CheckFramebufferStatus would return INCOMPLETE status. We already call drawValidate before any draw, the call was missing at glCheckFramebufferStatus. Change-Id: I94b930024c3076ac5fe0f8662d11884729c4f953 --- tools/emulator/opengl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/emulator/opengl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp b/tools/emulator/opengl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp index d768dd4a2..3c48a434e 100644 --- a/tools/emulator/opengl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp +++ b/tools/emulator/opengl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp @@ -317,6 +317,7 @@ GL_APICALL void GL_APIENTRY glBufferSubData(GLenum target, GLintptr offset, GLs GL_APICALL GLenum GL_APIENTRY glCheckFramebufferStatus(GLenum target){ GET_CTX_RET(GL_FRAMEBUFFER_COMPLETE); RET_AND_SET_ERROR_IF(!GLESv2Validate::framebufferTarget(target),GL_INVALID_ENUM,GL_FRAMEBUFFER_COMPLETE); + ctx->drawValidate(); return ctx->dispatcher().glCheckFramebufferStatusEXT(target); }