diff nuklear_ui/nuklear_sdl_gles2.h @ 2663:568c1c22f3e3

Allow changing at least some settings in web build without breaking
author Michael Pavone <pavone@retrodev.com>
date Thu, 06 Mar 2025 01:33:03 -0800
parents 1c7329ac7f3f
children
line wrap: on
line diff
--- a/nuklear_ui/nuklear_sdl_gles2.h	Wed Mar 05 22:24:22 2025 -0800
+++ b/nuklear_ui/nuklear_sdl_gles2.h	Thu Mar 06 01:33:03 2025 -0800
@@ -296,6 +296,9 @@
             offset += cmd->elem_count;
         }
         nk_clear(&sdl.ctx);
+        glDisableVertexAttribArray((GLuint)dev->attrib_pos);
+        glDisableVertexAttribArray((GLuint)dev->attrib_uv);
+        glDisableVertexAttribArray((GLuint)dev->attrib_col);
     }
 
     glUseProgram(0);