diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-10-21 07:14:46 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-10-21 07:14:46 +0200 |
commit | f02a283c06c51cb29f79e89754b31ffd6952d2e6 (patch) | |
tree | 2eb691e105b65d3ca0464ed00628dd0b0974955a /src/window | |
parent | 2d4457a5ee926eca221102ee70f118b305ea2670 (diff) |
Add vertex buffer
Diffstat (limited to 'src/window')
-rw-r--r-- | src/window/window.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/window/window.c b/src/window/window.c index 80c3ccf..691a647 100644 --- a/src/window/window.c +++ b/src/window/window.c @@ -84,6 +84,9 @@ int mgl_window_create_with_params(mgl_window *self, const char *title, int width context->gl.glEnable(GL_TEXTURE_2D); 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); XWindowAttributes gwa; gwa.width = 0; |