mirror of
https://github.com/MobileGL-Dev/MobileGlues.git
synced 2025-09-23 03:04:03 -04:00
fix
This commit is contained in:
parent
d0e1f5c718
commit
60bf2d8fff
@ -153,8 +153,6 @@ void glDrawBuffers(GLsizei n, const GLenum *bufs) {
|
|||||||
if (bufs[i] >= GL_COLOR_ATTACHMENT0 && bufs[i] <= GL_COLOR_ATTACHMENT0 + getMaxDrawBuffers()) {
|
if (bufs[i] >= GL_COLOR_ATTACHMENT0 && bufs[i] <= GL_COLOR_ATTACHMENT0 + getMaxDrawBuffers()) {
|
||||||
GLenum target_attachment = GL_COLOR_ATTACHMENT0 + i;
|
GLenum target_attachment = GL_COLOR_ATTACHMENT0 + i;
|
||||||
new_bufs[i] = target_attachment;
|
new_bufs[i] = target_attachment;
|
||||||
if (bufs[i] == target_attachment)
|
|
||||||
continue;
|
|
||||||
rebind_framebuffer(bufs[i], target_attachment);
|
rebind_framebuffer(bufs[i], target_attachment);
|
||||||
} else {
|
} else {
|
||||||
new_bufs[i] = bufs[i];
|
new_bufs[i] = bufs[i];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user