23 Sep 2016

This commit is contained in:
g-cont 2016-09-23 00:00:00 +03:00 committed by Alibek Omarov
parent 4a52ab4ace
commit 942f10b778
1 changed files with 1 additions and 1 deletions

View File

@ -806,7 +806,7 @@ static void GL_SetTextureTarget( gltexture_t *tex, rgbdata_t *pic )
tex->target = GL_TEXTURE_1D;
else if( pic->flags & IMAGE_CUBEMAP )
tex->target = GL_TEXTURE_CUBE_MAP_ARB;
else if(( pic->flags & IMAGE_MULTILAYER ) && pic->depth > 1 )
else if(( pic->flags & IMAGE_MULTILAYER ) && pic->depth >= 1 )
tex->target = GL_TEXTURE_2D_ARRAY_EXT;
else if( pic->width > 1 && pic->height > 1 && pic->depth > 1 )
tex->target = GL_TEXTURE_3D;