Skip to content

Commit 79facde

Browse files
authored
fix rlActiveDrawBuffers for OpenGL ES 3 (#4605)
1 parent d050480 commit 79facde

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/rlgl.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1890,16 +1890,6 @@ void rlActiveDrawBuffers(int count)
18901890
else
18911891
{
18921892
unsigned int buffers[8] = {
1893-
#if defined(GRAPHICS_API_OPENGL_ES3)
1894-
GL_COLOR_ATTACHMENT0_EXT,
1895-
GL_COLOR_ATTACHMENT1_EXT,
1896-
GL_COLOR_ATTACHMENT2_EXT,
1897-
GL_COLOR_ATTACHMENT3_EXT,
1898-
GL_COLOR_ATTACHMENT4_EXT,
1899-
GL_COLOR_ATTACHMENT5_EXT,
1900-
GL_COLOR_ATTACHMENT6_EXT,
1901-
GL_COLOR_ATTACHMENT7_EXT,
1902-
#else
19031893
GL_COLOR_ATTACHMENT0,
19041894
GL_COLOR_ATTACHMENT1,
19051895
GL_COLOR_ATTACHMENT2,
@@ -1908,14 +1898,9 @@ void rlActiveDrawBuffers(int count)
19081898
GL_COLOR_ATTACHMENT5,
19091899
GL_COLOR_ATTACHMENT6,
19101900
GL_COLOR_ATTACHMENT7,
1911-
#endif
19121901
};
19131902

1914-
#if defined(GRAPHICS_API_OPENGL_ES3)
1915-
glDrawBuffersEXT(count, buffers);
1916-
#else
19171903
glDrawBuffers(count, buffers);
1918-
#endif
19191904
}
19201905
}
19211906
else TRACELOG(LOG_WARNING, "GL: One color buffer active by default");

0 commit comments

Comments
 (0)