From 5476dd7d21875d68a4d957f441d34eee2a9e2b37 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 29 Oct 2021 13:58:14 +0200 Subject: Fix multiple vertex buffers using the same data Need to call glVertexPointer/glTexCoordPointer/glColorPointer every time we render. --- src/window/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/window') 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; -- cgit v1.2.3