@ -397,6 +397,8 @@ static size_t GL_CalcTextureSize( GLenum format, int width, int height, int dept
@@ -397,6 +397,8 @@ static size_t GL_CalcTextureSize( GLenum format, int width, int height, int dept
caseGL_COMPRESSED_RGBA_S3TC_DXT3_EXT:
caseGL_COMPRESSED_RGBA_S3TC_DXT5_EXT:
caseGL_COMPRESSED_RED_GREEN_RGTC2_EXT:
caseGL_COMPRESSED_LUMINANCE_ALPHA_ARB:
caseGL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI:
size=(((width+3)>>2)*((height+3)>>2)*16)*depth;
break;
caseGL_RGBA8:
@ -452,10 +454,14 @@ static size_t GL_CalcTextureSize( GLenum format, int width, int height, int dept
@@ -452,10 +454,14 @@ static size_t GL_CalcTextureSize( GLenum format, int width, int height, int dept
size=width*height*depth*8;
break;
caseGL_RGB16F_ARB:
size=width*height*depth*6;
break;
caseGL_RGBA16F_ARB:
size=width*height*depth*8;
break;
caseGL_RGB32F_ARB:
size=width*height*depth*12;
break;
caseGL_RGBA32F_ARB:
size=width*height*depth*16;
break;
@ -662,7 +668,11 @@ static void GL_SetTextureFormat( gl_texture_t *tex, pixformat_t format, int chan
@@ -662,7 +668,11 @@ static void GL_SetTextureFormat( gl_texture_t *tex, pixformat_t format, int chan
casePF_DXT1:tex->format=GL_COMPRESSED_RGB_S3TC_DXT1_EXT;break;// never use DXT1 with 1-bit alpha