Index: gpu/command_buffer/service/gles2_cmd_decoder.cc |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
index 7b7def51edd37349492a3e9cbe089be975e76bcb..7132413f7366d7c3d3dd9a0a8328b56be4f7b7d1 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
@@ -16718,6 +16718,15 @@ void GLES2DecoderImpl::DoCreateAndConsumeTextureINTERNAL( |
} |
void GLES2DecoderImpl::DoApplyScreenSpaceAntialiasingCHROMIUM() { |
+ Framebuffer* bound_framebuffer = |
+ GetFramebufferInfoForTarget(GL_DRAW_FRAMEBUFFER); |
+ if (!bound_framebuffer) { |
+ LOCAL_SET_GL_ERROR(GL_INVALID_OPERATION, |
+ "glApplyScreenSpaceAntialiasingCHROMIUM", |
+ "no bound framebuffer object"); |
+ return; |
+ } |
piman
2016/10/20 18:36:17
Can you update gpu/GLES2/extensions/CHROMIUM/CHROM
dshwang
2016/10/20 19:12:18
good question.
https://cs.chromium.org/chromium/s
|
+ |
// Apply CMAA(Conservative Morphological Anti-Aliasing) algorithm to the |
// color attachments of currently bound draw framebuffer. |
// Reference GL_INTEL_framebuffer_CMAA for details. |
@@ -16740,8 +16749,7 @@ void GLES2DecoderImpl::DoApplyScreenSpaceAntialiasingCHROMIUM() { |
return; |
} |
apply_framebuffer_attachment_cmaa_intel_ |
- ->ApplyFramebufferAttachmentCMAAINTEL( |
- this, GetFramebufferInfoForTarget(GL_DRAW_FRAMEBUFFER)); |
+ ->ApplyFramebufferAttachmentCMAAINTEL(this, bound_framebuffer); |
} |
} |