Make GL_ARB_multisample mandatory
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:

committed by
Ian Romanick

parent
33fa5e4bfa
commit
2b77b1d62e
@@ -63,7 +63,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#include "drirenderbuffer.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define need_GL_ARB_multisample
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#include "extension_helper.h"
|
||||
|
||||
@@ -122,7 +121,6 @@ static void i810BufferSize(GLframebuffer *buffer, GLuint *width, GLuint *height)
|
||||
*/
|
||||
const struct dri_extension card_extensions[] =
|
||||
{
|
||||
{ "GL_ARB_multisample", GL_ARB_multisample_functions },
|
||||
{ "GL_ARB_multitexture", NULL },
|
||||
{ "GL_ARB_texture_env_add", NULL },
|
||||
{ "GL_ARB_texture_env_combine", NULL },
|
||||
|
@@ -31,7 +31,6 @@
|
||||
|
||||
|
||||
#define need_GL_ARB_framebuffer_object
|
||||
#define need_GL_ARB_multisample
|
||||
#define need_GL_ARB_occlusion_query
|
||||
#define need_GL_ARB_point_parameters
|
||||
#define need_GL_ARB_shader_objects
|
||||
@@ -67,7 +66,6 @@
|
||||
* i965_dri.
|
||||
*/
|
||||
static const struct dri_extension card_extensions[] = {
|
||||
{ "GL_ARB_multisample", GL_ARB_multisample_functions },
|
||||
{ "GL_ARB_multitexture", NULL },
|
||||
{ "GL_ARB_point_parameters", GL_ARB_point_parameters_functions },
|
||||
{ "GL_ARB_texture_border_clamp", NULL },
|
||||
|
@@ -57,7 +57,6 @@
|
||||
#include "utils.h"
|
||||
#include "vblank.h"
|
||||
|
||||
#define need_GL_ARB_multisample
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#include "extension_helper.h"
|
||||
|
||||
@@ -82,7 +81,6 @@ static const struct dri_debug_control debug_control[] =
|
||||
|
||||
const struct dri_extension card_extensions[] =
|
||||
{
|
||||
{ "GL_ARB_multisample", GL_ARB_multisample_functions },
|
||||
{ "GL_ARB_multitexture", NULL },
|
||||
{ "GL_ARB_vertex_buffer_object", GL_ARB_vertex_buffer_object_functions },
|
||||
{ "GL_EXT_texture_edge_clamp", NULL },
|
||||
|
@@ -69,7 +69,6 @@
|
||||
|
||||
#include "GL/internal/dri_interface.h"
|
||||
|
||||
#define need_GL_ARB_multisample
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#define need_GL_ARB_vertex_program
|
||||
#define need_GL_EXT_fog_coord
|
||||
@@ -384,7 +383,6 @@ static const struct dri_extension g400_extensions[] =
|
||||
|
||||
static const struct dri_extension card_extensions[] =
|
||||
{
|
||||
{ "GL_ARB_multisample", GL_ARB_multisample_functions },
|
||||
{ "GL_ARB_texture_rectangle", NULL },
|
||||
{ "GL_ARB_vertex_buffer_object", GL_ARB_vertex_buffer_object_functions },
|
||||
{ "GL_EXT_blend_logic_op", NULL },
|
||||
|
@@ -65,7 +65,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
int R128_DEBUG = 0;
|
||||
#endif
|
||||
|
||||
#define need_GL_ARB_multisample
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#define need_GL_EXT_blend_minmax
|
||||
#define need_GL_EXT_fog_coord
|
||||
@@ -74,7 +73,6 @@ int R128_DEBUG = 0;
|
||||
|
||||
const struct dri_extension card_extensions[] =
|
||||
{
|
||||
{ "GL_ARB_multisample", GL_ARB_multisample_functions },
|
||||
{ "GL_ARB_multitexture", NULL },
|
||||
{ "GL_ARB_texture_env_add", NULL },
|
||||
{ "GL_ARB_texture_mirrored_repeat", NULL },
|
||||
|
@@ -62,7 +62,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#include "r200_maos.h"
|
||||
#include "r200_vertprog.h"
|
||||
|
||||
#define need_GL_ARB_multisample
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#define need_GL_ARB_vertex_program
|
||||
#define need_GL_ATI_fragment_shader
|
||||
@@ -119,7 +118,6 @@ static const GLubyte *r200GetString( GLcontext *ctx, GLenum name )
|
||||
*/
|
||||
const struct dri_extension card_extensions[] =
|
||||
{
|
||||
{ "GL_ARB_multisample", GL_ARB_multisample_functions },
|
||||
{ "GL_ARB_multitexture", NULL },
|
||||
{ "GL_ARB_texture_border_clamp", NULL },
|
||||
{ "GL_ARB_texture_env_add", NULL },
|
||||
|
@@ -78,7 +78,6 @@ int future_hw_tcl_on = 1;
|
||||
int hw_tcl_on = 1;
|
||||
|
||||
#define need_GL_VERSION_2_0
|
||||
#define need_GL_ARB_multisample
|
||||
#define need_GL_ARB_point_parameters
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#define need_GL_ARB_vertex_program
|
||||
@@ -98,7 +97,6 @@ const struct dri_extension card_extensions[] = {
|
||||
/* *INDENT-OFF* */
|
||||
{"GL_ARB_depth_texture", NULL},
|
||||
{"GL_ARB_fragment_program", NULL},
|
||||
{"GL_ARB_multisample", GL_ARB_multisample_functions},
|
||||
{"GL_ARB_multitexture", NULL},
|
||||
{"GL_ARB_point_parameters", GL_ARB_point_parameters_functions},
|
||||
{"GL_ARB_shadow", NULL},
|
||||
|
@@ -62,7 +62,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#include "radeon_tcl.h"
|
||||
#include "radeon_maos.h"
|
||||
|
||||
#define need_GL_ARB_multisample
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#define need_GL_EXT_blend_minmax
|
||||
#define need_GL_EXT_fog_coord
|
||||
@@ -113,7 +112,6 @@ static const GLubyte *radeonGetString( GLcontext *ctx, GLenum name )
|
||||
*/
|
||||
const struct dri_extension card_extensions[] =
|
||||
{
|
||||
{ "GL_ARB_multisample", GL_ARB_multisample_functions },
|
||||
{ "GL_ARB_multitexture", NULL },
|
||||
{ "GL_ARB_texture_border_clamp", NULL },
|
||||
{ "GL_ARB_texture_env_add", NULL },
|
||||
|
@@ -59,7 +59,6 @@
|
||||
#include "drirenderbuffer.h"
|
||||
#include "texmem.h"
|
||||
|
||||
#define need_GL_ARB_multisample
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#define need_GL_EXT_secondary_color
|
||||
#include "extension_helper.h"
|
||||
@@ -132,7 +131,6 @@ struct timeval tv_s1,tv_f1;
|
||||
|
||||
static const struct dri_extension card_extensions[] =
|
||||
{
|
||||
{ "GL_ARB_multisample", GL_ARB_multisample_functions },
|
||||
{ "GL_ARB_multitexture", NULL },
|
||||
{ "GL_ARB_vertex_buffer_object", GL_ARB_vertex_buffer_object_functions },
|
||||
{ "GL_EXT_stencil_wrap", NULL },
|
||||
|
@@ -57,7 +57,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#include "tnl/tnl.h"
|
||||
#include "tnl/t_pipeline.h"
|
||||
|
||||
#define need_GL_ARB_multisample
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#define need_GL_EXT_fog_coord
|
||||
#define need_GL_EXT_secondary_color
|
||||
@@ -73,7 +72,6 @@ int GlobalCmdQueueLen = 0;
|
||||
|
||||
struct dri_extension card_extensions[] =
|
||||
{
|
||||
{ "GL_ARB_multisample", GL_ARB_multisample_functions },
|
||||
{ "GL_ARB_multitexture", NULL },
|
||||
{ "GL_ARB_texture_border_clamp", NULL },
|
||||
{ "GL_ARB_texture_mirrored_repeat", NULL },
|
||||
@@ -89,7 +87,6 @@ struct dri_extension card_extensions[] =
|
||||
|
||||
struct dri_extension card_extensions_6326[] =
|
||||
{
|
||||
{ "GL_ARB_multisample", GL_ARB_multisample_functions },
|
||||
/*{ "GL_ARB_texture_border_clamp", NULL },*/
|
||||
/*{ "GL_ARB_texture_mirrored_repeat", NULL },*/
|
||||
/*{ "GL_MESA_ycbcr_texture", NULL },*/
|
||||
|
@@ -58,7 +58,6 @@
|
||||
|
||||
#include "utils.h"
|
||||
|
||||
#define need_GL_ARB_multisample
|
||||
/* #define need_GL_ARB_point_parameters */
|
||||
#define need_GL_ARB_occlusion_query
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
@@ -81,7 +80,6 @@
|
||||
*/
|
||||
const struct dri_extension card_extensions[] =
|
||||
{
|
||||
{ "GL_ARB_multisample", GL_ARB_multisample_functions },
|
||||
{ "GL_ARB_occlusion_query", GL_ARB_occlusion_query_functions },
|
||||
{ "GL_ARB_texture_mirrored_repeat", NULL },
|
||||
{ "GL_ARB_vertex_buffer_object", GL_ARB_vertex_buffer_object_functions },
|
||||
|
@@ -62,7 +62,6 @@
|
||||
#include "main/macros.h"
|
||||
#include "drirenderbuffer.h"
|
||||
|
||||
#define need_GL_ARB_multisample
|
||||
#define need_GL_ARB_point_parameters
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#define need_GL_EXT_fog_coord
|
||||
@@ -366,7 +365,6 @@ void viaReAllocateBuffers(GLcontext *ctx, GLframebuffer *drawbuffer,
|
||||
*/
|
||||
const struct dri_extension card_extensions[] =
|
||||
{
|
||||
{ "GL_ARB_multisample", GL_ARB_multisample_functions },
|
||||
{ "GL_ARB_multitexture", NULL },
|
||||
{ "GL_ARB_point_parameters", GL_ARB_point_parameters_functions },
|
||||
{ "GL_ARB_texture_env_add", NULL },
|
||||
|
@@ -772,35 +772,30 @@ _mesa_set_enable(GLcontext *ctx, GLenum cap, GLboolean state)
|
||||
|
||||
/* GL_ARB_multisample */
|
||||
case GL_MULTISAMPLE_ARB:
|
||||
CHECK_EXTENSION(ARB_multisample, cap);
|
||||
if (ctx->Multisample.Enabled == state)
|
||||
return;
|
||||
FLUSH_VERTICES(ctx, _NEW_MULTISAMPLE);
|
||||
ctx->Multisample.Enabled = state;
|
||||
break;
|
||||
case GL_SAMPLE_ALPHA_TO_COVERAGE_ARB:
|
||||
CHECK_EXTENSION(ARB_multisample, cap);
|
||||
if (ctx->Multisample.SampleAlphaToCoverage == state)
|
||||
return;
|
||||
FLUSH_VERTICES(ctx, _NEW_MULTISAMPLE);
|
||||
ctx->Multisample.SampleAlphaToCoverage = state;
|
||||
break;
|
||||
case GL_SAMPLE_ALPHA_TO_ONE_ARB:
|
||||
CHECK_EXTENSION(ARB_multisample, cap);
|
||||
if (ctx->Multisample.SampleAlphaToOne == state)
|
||||
return;
|
||||
FLUSH_VERTICES(ctx, _NEW_MULTISAMPLE);
|
||||
ctx->Multisample.SampleAlphaToOne = state;
|
||||
break;
|
||||
case GL_SAMPLE_COVERAGE_ARB:
|
||||
CHECK_EXTENSION(ARB_multisample, cap);
|
||||
if (ctx->Multisample.SampleCoverage == state)
|
||||
return;
|
||||
FLUSH_VERTICES(ctx, _NEW_MULTISAMPLE);
|
||||
ctx->Multisample.SampleCoverage = state;
|
||||
break;
|
||||
case GL_SAMPLE_COVERAGE_INVERT_ARB:
|
||||
CHECK_EXTENSION(ARB_multisample, cap);
|
||||
if (ctx->Multisample.SampleCoverageInvert == state)
|
||||
return;
|
||||
FLUSH_VERTICES(ctx, _NEW_MULTISAMPLE);
|
||||
@@ -1284,19 +1279,14 @@ _mesa_IsEnabled( GLenum cap )
|
||||
|
||||
/* GL_ARB_multisample */
|
||||
case GL_MULTISAMPLE_ARB:
|
||||
CHECK_EXTENSION(ARB_multisample);
|
||||
return ctx->Multisample.Enabled;
|
||||
case GL_SAMPLE_ALPHA_TO_COVERAGE_ARB:
|
||||
CHECK_EXTENSION(ARB_multisample);
|
||||
return ctx->Multisample.SampleAlphaToCoverage;
|
||||
case GL_SAMPLE_ALPHA_TO_ONE_ARB:
|
||||
CHECK_EXTENSION(ARB_multisample);
|
||||
return ctx->Multisample.SampleAlphaToOne;
|
||||
case GL_SAMPLE_COVERAGE_ARB:
|
||||
CHECK_EXTENSION(ARB_multisample);
|
||||
return ctx->Multisample.SampleCoverage;
|
||||
case GL_SAMPLE_COVERAGE_INVERT_ARB:
|
||||
CHECK_EXTENSION(ARB_multisample);
|
||||
return ctx->Multisample.SampleCoverageInvert;
|
||||
|
||||
/* GL_IBM_rasterpos_clip */
|
||||
|
@@ -52,7 +52,7 @@ static const struct {
|
||||
{ OFF, "GL_ARB_framebuffer_object", F(ARB_framebuffer_object) },
|
||||
{ OFF, "GL_ARB_half_float_pixel", F(ARB_half_float_pixel) },
|
||||
{ OFF, "GL_ARB_imaging", F(ARB_imaging) },
|
||||
{ OFF, "GL_ARB_multisample", F(ARB_multisample) },
|
||||
{ ON, "GL_ARB_multisample", F(ARB_multisample) },
|
||||
{ OFF, "GL_ARB_multitexture", F(ARB_multitexture) },
|
||||
{ OFF, "GL_ARB_occlusion_query", F(ARB_occlusion_query) },
|
||||
{ OFF, "GL_ARB_pixel_buffer_object", F(EXT_pixel_buffer_object) },
|
||||
@@ -342,7 +342,7 @@ _mesa_enable_imaging_extensions(GLcontext *ctx)
|
||||
void
|
||||
_mesa_enable_1_3_extensions(GLcontext *ctx)
|
||||
{
|
||||
ctx->Extensions.ARB_multisample = GL_TRUE;
|
||||
/*ctx->Extensions.ARB_multisample = GL_TRUE;*/
|
||||
ctx->Extensions.ARB_multitexture = GL_TRUE;
|
||||
ctx->Extensions.ARB_texture_border_clamp = GL_TRUE;
|
||||
/*ctx->Extensions.ARB_texture_compression = GL_TRUE;*/
|
||||
|
@@ -1365,35 +1365,27 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params )
|
||||
params[0] = FLOAT_TO_BOOLEAN(ctx->Const.MaxTextureMaxAnisotropy);
|
||||
break;
|
||||
case GL_MULTISAMPLE_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetBooleanv");
|
||||
params[0] = ctx->Multisample.Enabled;
|
||||
break;
|
||||
case GL_SAMPLE_ALPHA_TO_COVERAGE_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetBooleanv");
|
||||
params[0] = ctx->Multisample.SampleAlphaToCoverage;
|
||||
break;
|
||||
case GL_SAMPLE_ALPHA_TO_ONE_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetBooleanv");
|
||||
params[0] = ctx->Multisample.SampleAlphaToOne;
|
||||
break;
|
||||
case GL_SAMPLE_COVERAGE_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetBooleanv");
|
||||
params[0] = ctx->Multisample.SampleCoverage;
|
||||
break;
|
||||
case GL_SAMPLE_COVERAGE_VALUE_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetBooleanv");
|
||||
params[0] = FLOAT_TO_BOOLEAN(ctx->Multisample.SampleCoverageValue);
|
||||
break;
|
||||
case GL_SAMPLE_COVERAGE_INVERT_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetBooleanv");
|
||||
params[0] = ctx->Multisample.SampleCoverageInvert;
|
||||
break;
|
||||
case GL_SAMPLE_BUFFERS_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetBooleanv");
|
||||
params[0] = INT_TO_BOOLEAN(ctx->DrawBuffer->Visual.sampleBuffers);
|
||||
break;
|
||||
case GL_SAMPLES_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetBooleanv");
|
||||
params[0] = INT_TO_BOOLEAN(ctx->DrawBuffer->Visual.samples);
|
||||
break;
|
||||
case GL_RASTER_POSITION_UNCLIPPED_IBM:
|
||||
@@ -3214,35 +3206,27 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params )
|
||||
params[0] = ctx->Const.MaxTextureMaxAnisotropy;
|
||||
break;
|
||||
case GL_MULTISAMPLE_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetFloatv");
|
||||
params[0] = BOOLEAN_TO_FLOAT(ctx->Multisample.Enabled);
|
||||
break;
|
||||
case GL_SAMPLE_ALPHA_TO_COVERAGE_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetFloatv");
|
||||
params[0] = BOOLEAN_TO_FLOAT(ctx->Multisample.SampleAlphaToCoverage);
|
||||
break;
|
||||
case GL_SAMPLE_ALPHA_TO_ONE_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetFloatv");
|
||||
params[0] = BOOLEAN_TO_FLOAT(ctx->Multisample.SampleAlphaToOne);
|
||||
break;
|
||||
case GL_SAMPLE_COVERAGE_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetFloatv");
|
||||
params[0] = BOOLEAN_TO_FLOAT(ctx->Multisample.SampleCoverage);
|
||||
break;
|
||||
case GL_SAMPLE_COVERAGE_VALUE_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetFloatv");
|
||||
params[0] = ctx->Multisample.SampleCoverageValue;
|
||||
break;
|
||||
case GL_SAMPLE_COVERAGE_INVERT_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetFloatv");
|
||||
params[0] = BOOLEAN_TO_FLOAT(ctx->Multisample.SampleCoverageInvert);
|
||||
break;
|
||||
case GL_SAMPLE_BUFFERS_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetFloatv");
|
||||
params[0] = (GLfloat)(ctx->DrawBuffer->Visual.sampleBuffers);
|
||||
break;
|
||||
case GL_SAMPLES_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetFloatv");
|
||||
params[0] = (GLfloat)(ctx->DrawBuffer->Visual.samples);
|
||||
break;
|
||||
case GL_RASTER_POSITION_UNCLIPPED_IBM:
|
||||
@@ -5063,35 +5047,27 @@ _mesa_GetIntegerv( GLenum pname, GLint *params )
|
||||
params[0] = IROUND(ctx->Const.MaxTextureMaxAnisotropy);
|
||||
break;
|
||||
case GL_MULTISAMPLE_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetIntegerv");
|
||||
params[0] = BOOLEAN_TO_INT(ctx->Multisample.Enabled);
|
||||
break;
|
||||
case GL_SAMPLE_ALPHA_TO_COVERAGE_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetIntegerv");
|
||||
params[0] = BOOLEAN_TO_INT(ctx->Multisample.SampleAlphaToCoverage);
|
||||
break;
|
||||
case GL_SAMPLE_ALPHA_TO_ONE_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetIntegerv");
|
||||
params[0] = BOOLEAN_TO_INT(ctx->Multisample.SampleAlphaToOne);
|
||||
break;
|
||||
case GL_SAMPLE_COVERAGE_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetIntegerv");
|
||||
params[0] = BOOLEAN_TO_INT(ctx->Multisample.SampleCoverage);
|
||||
break;
|
||||
case GL_SAMPLE_COVERAGE_VALUE_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetIntegerv");
|
||||
params[0] = IROUND(ctx->Multisample.SampleCoverageValue);
|
||||
break;
|
||||
case GL_SAMPLE_COVERAGE_INVERT_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetIntegerv");
|
||||
params[0] = BOOLEAN_TO_INT(ctx->Multisample.SampleCoverageInvert);
|
||||
break;
|
||||
case GL_SAMPLE_BUFFERS_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetIntegerv");
|
||||
params[0] = ctx->DrawBuffer->Visual.sampleBuffers;
|
||||
break;
|
||||
case GL_SAMPLES_ARB:
|
||||
CHECK_EXT1(ARB_multisample, "GetIntegerv");
|
||||
params[0] = ctx->DrawBuffer->Visual.samples;
|
||||
break;
|
||||
case GL_RASTER_POSITION_UNCLIPPED_IBM:
|
||||
|
@@ -681,21 +681,21 @@ StateVars = [
|
||||
|
||||
# GL_ARB_multisample
|
||||
( "GL_MULTISAMPLE_ARB", GLboolean,
|
||||
["ctx->Multisample.Enabled"], "", ["ARB_multisample"] ),
|
||||
["ctx->Multisample.Enabled"], "", None ),
|
||||
( "GL_SAMPLE_ALPHA_TO_COVERAGE_ARB", GLboolean,
|
||||
["ctx->Multisample.SampleAlphaToCoverage"], "", ["ARB_multisample"] ),
|
||||
["ctx->Multisample.SampleAlphaToCoverage"], "", None ),
|
||||
( "GL_SAMPLE_ALPHA_TO_ONE_ARB", GLboolean,
|
||||
["ctx->Multisample.SampleAlphaToOne"], "", ["ARB_multisample"] ),
|
||||
["ctx->Multisample.SampleAlphaToOne"], "", None ),
|
||||
( "GL_SAMPLE_COVERAGE_ARB", GLboolean,
|
||||
["ctx->Multisample.SampleCoverage"], "", ["ARB_multisample"] ),
|
||||
["ctx->Multisample.SampleCoverage"], "", None ),
|
||||
( "GL_SAMPLE_COVERAGE_VALUE_ARB", GLfloat,
|
||||
["ctx->Multisample.SampleCoverageValue"], "", ["ARB_multisample"] ),
|
||||
["ctx->Multisample.SampleCoverageValue"], "", None ),
|
||||
( "GL_SAMPLE_COVERAGE_INVERT_ARB", GLboolean,
|
||||
["ctx->Multisample.SampleCoverageInvert"], "", ["ARB_multisample"] ),
|
||||
["ctx->Multisample.SampleCoverageInvert"], "", None ),
|
||||
( "GL_SAMPLE_BUFFERS_ARB", GLint,
|
||||
["ctx->DrawBuffer->Visual.sampleBuffers"], "", ["ARB_multisample"] ),
|
||||
["ctx->DrawBuffer->Visual.sampleBuffers"], "", None ),
|
||||
( "GL_SAMPLES_ARB", GLint,
|
||||
["ctx->DrawBuffer->Visual.samples"], "", ["ARB_multisample"] ),
|
||||
["ctx->DrawBuffer->Visual.samples"], "", None ),
|
||||
|
||||
# GL_IBM_rasterpos_clip
|
||||
( "GL_RASTER_POSITION_UNCLIPPED_IBM", GLboolean,
|
||||
|
@@ -37,11 +37,6 @@ _mesa_SampleCoverageARB(GLclampf value, GLboolean invert)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (!ctx->Extensions.ARB_multisample) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "glSampleCoverageARB");
|
||||
return;
|
||||
}
|
||||
|
||||
ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH( ctx );
|
||||
|
||||
ctx->Multisample.SampleCoverageValue = (GLfloat) CLAMP(value, 0.0, 1.0);
|
||||
|
Reference in New Issue
Block a user