diff options
| author | Yochai Shefi Simchon <joch@graphtech.co.il> | 2011-08-04 14:28:05 +0300 |
|---|---|---|
| committer | David 'Digit' Turner <digit@android.com> | 2011-08-10 10:43:25 +0200 |
| commit | 29994cba1a9177f8e113a9aa4ffd68d849c7d216 (patch) | |
| tree | 180b8fade8e6e28d13670b460e56073e94893fd3 /tools/emulator/opengl/shared/OpenglCodecCommon/GLSharedGroup.cpp | |
| parent | aac306dfbba36c34efe025c9b283dc9c121805f0 (diff) | |
opengles emulator: make glFramebufferTexture2D work
The GLES and OpenGL specs for glFramebufferTexture2D are different, which
caused valid GLES calls to fail when moved over to OpenGL. Specifically,
a framebuffer in OpenGL must have a color attachment in order to be valid
for draw, while in GLES it doesn't. So add a validate function, and call
it from each drawing API call.
This patch also contains a workaround for a bug in the ATI driver, where
changing the framebuffer attachments requires a rebind of the framebuffer.
Change-Id: I011fbe0e2b1c66564322268868a24a9d5958a434
Diffstat (limited to 'tools/emulator/opengl/shared/OpenglCodecCommon/GLSharedGroup.cpp')
0 files changed, 0 insertions, 0 deletions
