|
|
@ -1047,7 +1047,7 @@ static void GL_TextureImageRAW( gl_texture_t *tex, GLint side, GLint level, GLin |
|
|
|
} |
|
|
|
} |
|
|
|
else if( tex->target == GL_TEXTURE_2D_MULTISAMPLE ) |
|
|
|
else if( tex->target == GL_TEXTURE_2D_MULTISAMPLE ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
#if !defined( XASH_GLES ) |
|
|
|
#if !defined( XASH_GLES ) && !defined( XASH_GL4ES ) |
|
|
|
samplesCount = (GLsizei)gEngfuncs.pfnGetCvarFloat("gl_msaa_samples"); |
|
|
|
samplesCount = (GLsizei)gEngfuncs.pfnGetCvarFloat("gl_msaa_samples"); |
|
|
|
switch (samplesCount) |
|
|
|
switch (samplesCount) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1060,9 +1060,9 @@ static void GL_TextureImageRAW( gl_texture_t *tex, GLint side, GLint level, GLin |
|
|
|
samplesCount = 1; |
|
|
|
samplesCount = 1; |
|
|
|
} |
|
|
|
} |
|
|
|
pglTexImage2DMultisample( tex->target, samplesCount, tex->format, width, height, GL_TRUE ); |
|
|
|
pglTexImage2DMultisample( tex->target, samplesCount, tex->format, width, height, GL_TRUE ); |
|
|
|
#else /* XASH_GLES */ |
|
|
|
#else /* !XASH_GLES && !XASH_GL4ES */ |
|
|
|
Con_Printf( S_ERROR "GLES renderer don't support GL_TEXTURE_2D_MULTISAMPLE!\n" ); |
|
|
|
gEngfuncs.Con_Printf( S_ERROR "GLES renderer don't support GL_TEXTURE_2D_MULTISAMPLE!\n" ); |
|
|
|
#endif /* XASH_GLES */ |
|
|
|
#endif /* !XASH_GLES && !XASH_GL4ES */ |
|
|
|
} |
|
|
|
} |
|
|
|
else // 2D or RECT
|
|
|
|
else // 2D or RECT
|
|
|
|
{ |
|
|
|
{ |
|
|
|