OpenGL2: Load existing per-map cubemaps.
This commit is contained in:
parent
558da25277
commit
2b2f1aeaa1
3 changed files with 208 additions and 175 deletions
|
@ -68,6 +68,9 @@ int GL_BindMultiTexture(GLenum texunit, GLenum target, GLuint texture)
|
|||
if (glDsaState.textures[tmu] == texture)
|
||||
return 0;
|
||||
|
||||
if (target >= GL_TEXTURE_CUBE_MAP_POSITIVE_X && target <= GL_TEXTURE_CUBE_MAP_NEGATIVE_Z)
|
||||
target = GL_TEXTURE_CUBE_MAP;
|
||||
|
||||
qglBindMultiTexture(texunit, target, texture);
|
||||
glDsaState.textures[tmu] = texture;
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue