diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-10-29 13:58:14 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-10-29 13:58:14 +0200 |
commit | 5476dd7d21875d68a4d957f441d34eee2a9e2b37 (patch) | |
tree | 87036daac6884287108535fed77f2cd100928d18 /src/window | |
parent | 14e3617736c63bd22b0785ad418acef825db221f (diff) |
Fix multiple vertex buffers using the same data
Need to call glVertexPointer/glTexCoordPointer/glColorPointer every time
we render.
Diffstat (limited to 'src/window')
-rw-r--r-- | src/window/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window/window.c b/src/window/window.c index f29b920..94756cd 100644 --- a/src/window/window.c +++ b/src/window/window.c @@ -103,8 +103,8 @@ static int mgl_window_init(mgl_window *self, const char *title, int width, int h context->gl.glEnable(GL_BLEND); context->gl.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); context->gl.glEnableClientState(GL_VERTEX_ARRAY); - context->gl.glEnableClientState(GL_COLOR_ARRAY); context->gl.glEnableClientState(GL_TEXTURE_COORD_ARRAY); + context->gl.glEnableClientState(GL_COLOR_ARRAY); XWindowAttributes gwa; gwa.width = 0; |