X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fcontext.c;h=a5bf99a266da912a6e6c36b895c1f51b9df5476b;hb=b68ff2b8731427b3b68c9c81902f7ba93606caaf;hp=c68be8d01e54448a2e16c213842998e5eba49cc2;hpb=5a747306ce6dd3021c15cfabc83465ec3fb4bb1c;p=mesa.git diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index c68be8d01e5..a5bf99a266d 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -205,7 +205,6 @@ _mesa_notifySwapBuffers(struct gl_context *ctx) * \param stencilBits requested minimum bits per stencil buffer value * \param accumRedBits, accumGreenBits, accumBlueBits, accumAlphaBits number * of bits per color component in accum buffer. - * \param indexBits number of bits per pixel if \p rgbFlag is GL_FALSE * \param redBits number of bits per color component in frame buffer for RGB(A) * mode. We always use 8 in core Mesa though. * \param greenBits same as above. @@ -288,7 +287,6 @@ _mesa_initialize_visual( struct gl_config *vis, assert(accumBlueBits >= 0); assert(accumAlphaBits >= 0); - vis->rgbMode = GL_TRUE; vis->doubleBufferMode = dbFlag; vis->stereoMode = stereoFlag; @@ -298,7 +296,6 @@ _mesa_initialize_visual( struct gl_config *vis, vis->alphaBits = alphaBits; vis->rgbBits = redBits + greenBits + blueBits; - vis->indexBits = 0; vis->depthBits = depthBits; vis->stencilBits = stencilBits; @@ -307,10 +304,6 @@ _mesa_initialize_visual( struct gl_config *vis, vis->accumBlueBits = accumBlueBits; vis->accumAlphaBits = accumAlphaBits; - vis->haveAccumBuffer = accumRedBits > 0; - vis->haveDepthBuffer = depthBits > 0; - vis->haveStencilBuffer = stencilBits > 0; - vis->numAuxBuffers = 0; vis->level = 0; vis->sampleBuffers = numSamples > 0 ? 1 : 0; @@ -633,6 +626,8 @@ _mesa_init_constants(struct gl_constants *consts, gl_api api) consts->GLSLVersion = api == API_OPENGL_CORE ? 130 : 120; consts->GLSLVersionCompat = consts->GLSLVersion; + consts->GLSLLowerConstArrays = true; + /* Assume that if GLSL 1.30+ (or GLSL ES 3.00+) is supported that * gl_VertexID is implemented using a native hardware register with OpenGL * semantics. @@ -1323,7 +1318,7 @@ fail: * \sa _mesa_initialize_context() and init_attrib_groups(). */ void -_mesa_free_context_data(struct gl_context *ctx, bool destroy_compiler_types) +_mesa_free_context_data(struct gl_context *ctx) { if (!_mesa_get_current_context()){ /* No current context, but we may need one in order to delete @@ -1426,7 +1421,7 @@ void _mesa_destroy_context( struct gl_context *ctx ) { if (ctx) { - _mesa_free_context_data(ctx, true); + _mesa_free_context_data(ctx); free( (void *) ctx ); } }