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