diff options
author | omnisci3nce <omniscient.oce@gmail.com> | 2024-07-18 16:17:23 +1000 |
---|---|---|
committer | omnisci3nce <omniscient.oce@gmail.com> | 2024-07-18 16:17:23 +1000 |
commit | 7ec62c58e9560fc961ec3522490e40ad1d259c72 (patch) | |
tree | e7d6c9bb9efc9871fe2a4bc7e5f51a02f7d901ef /src/ral/backends/opengl | |
parent | c43bee3ec89e0863b4195ca9298a007d3526a6d9 (diff) |
wip skybox. make geometry owned and copied onto Mesh
Diffstat (limited to 'src/ral/backends/opengl')
-rw-r--r-- | src/ral/backends/opengl/backend_opengl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } } |