Evas GL: Pass correct attachment enum for glDiscardFramebufferEXT
authorDongyeon Kim <dy5.kim@samsung.com>
Mon, 11 May 2015 10:57:22 +0000 (19:57 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 3 Jun 2015 02:30:22 +0000 (11:30 +0900)
commitae91db021bc9817afd28968660e8a9067b358f41
treec43a0acc00f35e6f065e68c70ddcfe206a625392
parente4e67732c26d581ff0cf3ae3ef4d5f460b574e60
Evas GL: Pass correct attachment enum for glDiscardFramebufferEXT

Summary:
When default framebuffer(0) is bound, attachment should contain
COLOR, DEPTH or STENCIL for glDiscardFramebufferEXT.
When a framebuffer object is bound, attachment should contain
COLOR_ATTACHMENT0, DEPTH_ATTACHMENT or STENCIL_ATTACHMENT.
This should be correctly taken into account for indirect rendering,
where internal FBO is used.
@fix
src/modules/evas/engines/gl_common/evas_gl_api_ext.c
src/modules/evas/engines/gl_common/evas_gl_api_ext_def.h