From cfe04fff88445d528889da5b9388cfdbd3f9a3e5 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 14 Mar 2025 14:55:29 -0700 Subject: [PATCH] OpenGL: Fix layer texture generation --- src/platform/opengl/gl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/opengl/gl.c b/src/platform/opengl/gl.c index de8354c1c..e0a752beb 100644 --- a/src/platform/opengl/gl.c +++ b/src/platform/opengl/gl.c @@ -41,7 +41,7 @@ static void mGLContextInit(struct VideoBackend* v, WHandle handle) { _initTex(); context->activeTex = 0; - glGenTextures(VIDEO_LAYER_MAX, context->tex); + glGenTextures(VIDEO_LAYER_MAX, context->layers); int i; for (i = 0; i < VIDEO_LAYER_MAX; ++i) { glBindTexture(GL_TEXTURE_2D, context->layers[i]);