From 7ec62c58e9560fc961ec3522490e40ad1d259c72 Mon Sep 17 00:00:00 2001 From: omnisci3nce Date: Thu, 18 Jul 2024 16:17:23 +1000 Subject: wip skybox. make geometry owned and copied onto Mesh --- src/ral/backends/opengl/backend_opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ral/backends/opengl') diff --git a/src/ral/backends/opengl/backend_opengl.c b/src/ral/backends/opengl/backend_opengl.c index f4786b9..cf3a4e5 100644 --- a/src/ral/backends/opengl/backend_opengl.c +++ b/src/ral/backends/opengl/backend_opengl.c @@ -340,7 +340,7 @@ PUB void GPU_EncodeBindShaderData(GPU_CmdEncoder* encoder, u32 group, ShaderData } glUniform1i(tex_slot, i); glActiveTexture(GL_TEXTURE0 + i); - glBindTexture(GL_TEXTURE_2D, tex->id); + glBindTexture(GL_TEXTURE_CUBE_MAP, tex->id); } } } -- cgit v1.2.3-70-g09d2