mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-12-29 12:15:26 +01:00
ref/gl: do not set type on 1D textures on GLES (will fallback to 2D)
This commit is contained in:
parent
a508467aac
commit
373321ff00
@ -631,9 +631,12 @@ static void GL_SetTextureTarget( gl_texture_t *tex, rgbdata_t *pic )
|
||||
pic->numMips = Q_max( 1, pic->numMips );
|
||||
|
||||
// trying to determine texture type
|
||||
#ifndef XASH_GLES
|
||||
if( pic->width > 1 && pic->height <= 1 )
|
||||
tex->target = GL_TEXTURE_1D;
|
||||
else if( FBitSet( pic->flags, IMAGE_CUBEMAP ))
|
||||
else
|
||||
#endif // just skip first condition
|
||||
if( FBitSet( pic->flags, IMAGE_CUBEMAP ))
|
||||
tex->target = GL_TEXTURE_CUBE_MAP_ARB;
|
||||
else if( FBitSet( pic->flags, IMAGE_MULTILAYER ) && pic->depth >= 1 )
|
||||
tex->target = GL_TEXTURE_2D_ARRAY_EXT;
|
||||
|
Loading…
Reference in New Issue
Block a user