X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fget.c;h=6234f6ed6b7b7769bd44705c106102f7da178b86;hb=ebffa7b6af879d9475b2e9de9b7fa03e65fda6a8;hp=bd85befa12550fc17c6486a4805fcdbb6deb2624;hpb=45ab63c0cb274b20a7ae1f390b123e13a5b46c98;p=mesa.git diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index bd85befa125..6234f6ed6b7 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -607,7 +607,7 @@ static void find_custom_value(struct gl_context *ctx, const struct value_desc *d, union value *v) { struct gl_buffer_object **buffer_obj; - struct gl_vertex_attrib_array *array; + struct gl_array_attributes *array; GLuint unit, *p; switch (d->pname) { @@ -1076,6 +1076,10 @@ find_custom_value(struct gl_context *ctx, const struct value_desc *d, union valu case GL_SAMPLE_BUFFERS: v->value_int = _mesa_geometric_samples(ctx->DrawBuffer) > 0; break; + /* GL_EXT_textrue_integer */ + case GL_RGBA_INTEGER_MODE_EXT: + v->value_int = (ctx->DrawBuffer->_IntegerBuffers != 0); + break; /* GL_ATI_meminfo & GL_NVX_gpu_memory_info */ case GL_VBO_FREE_MEMORY_ATI: case GL_TEXTURE_FREE_MEMORY_ATI: