@ -481,7 +481,7 @@ static size_t GL_CalcTextureSize( GLenum format, int width, int height, int dept
@@ -481,7 +481,7 @@ static size_t GL_CalcTextureSize( GLenum format, int width, int height, int dept
@ -539,6 +539,8 @@ static void GL_SetTextureDimensions( gl_texture_t *tex, int width, int height, i
@@ -539,6 +539,8 @@ static void GL_SetTextureDimensions( gl_texture_t *tex, int width, int height, i
maxDepthSize=glConfig.max_3d_texture_size;
maxTextureSize=glConfig.max_3d_texture_size;
break;
default:
Assert(false);
}
// store original sizes
@ -717,7 +719,7 @@ static void GL_SetTextureFormat( gl_texture_t *tex, pixformat_t format, int chan
@@ -717,7 +719,7 @@ static void GL_SetTextureFormat( gl_texture_t *tex, pixformat_t format, int chan
switch(GL_CalcTextureSamples(channelMask))
{
case1:
case1:
if(FBitSet(tex->flags,TF_ALPHACONTRAST))
tex->format=GL_INTENSITY8;
elsetex->format=GL_LUMINANCE8;
@ -730,7 +732,7 @@ static void GL_SetTextureFormat( gl_texture_t *tex, pixformat_t format, int chan
@@ -730,7 +732,7 @@ static void GL_SetTextureFormat( gl_texture_t *tex, pixformat_t format, int chan
case32:tex->format=GL_RGB8;break;
default:tex->format=GL_RGB;break;
}
break;
break;
case4:
default:
switch(bits)
@ -1233,7 +1235,7 @@ do specified actions on pixels
@@ -1233,7 +1235,7 @@ do specified actions on pixels