Skip to content

Commit

Permalink
[HTML5] Fix OpenGL multiple render target support
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed May 11, 2022
1 parent 1350456 commit 6f226d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ void kinc_g4_set_render_targets(kinc_g4_render_target_t **targets, int count) {
for (int i = 0; i < count; ++i) buffers[i] = GL_COLOR_ATTACHMENT0 + i;
#if defined(KORE_OPENGL_ES) && defined(KORE_ANDROID) && KORE_ANDROID_API >= 18
((void (*)(GLsizei, GLenum *))glesDrawBuffers)(count, buffers);
#elif !defined(KORE_OPENGL_ES)
#elif !defined(KORE_OPENGL_ES) || defined(KORE_HTML5)
glDrawBuffers(count, buffers);
#endif
glCheckErrors();
Expand Down

0 comments on commit 6f226d4

Please sign in to comment.