mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 21:20:21 +01:00
mesa: check FEATURE_ARB_occlusion_query
This commit is contained in:
parent
049a59a87c
commit
4e3ae76fea
1 changed files with 7 additions and 0 deletions
|
|
@ -126,7 +126,9 @@
|
|||
#include "pixelstore.h"
|
||||
#include "points.h"
|
||||
#include "polygon.h"
|
||||
#if FEATURE_ARB_occlusion_query
|
||||
#include "queryobj.h"
|
||||
#endif
|
||||
#if FEATURE_drawpix
|
||||
#include "rastpos.h"
|
||||
#endif
|
||||
|
|
@ -1038,7 +1040,9 @@ init_attrib_groups(GLcontext *ctx)
|
|||
_mesa_init_point( ctx );
|
||||
_mesa_init_polygon( ctx );
|
||||
_mesa_init_program( ctx );
|
||||
#if FEATURE_ARB_occlusion_query
|
||||
_mesa_init_query( ctx );
|
||||
#endif
|
||||
#if FEATURE_drawpix
|
||||
_mesa_init_rastpos( ctx );
|
||||
#endif
|
||||
|
|
@ -1259,6 +1263,7 @@ _mesa_create_context(const GLvisual *visual,
|
|||
{
|
||||
GLcontext *ctx;
|
||||
|
||||
printf("***** enter %s\n", __FUNCTION__);
|
||||
ASSERT(visual);
|
||||
ASSERT(driverContext);
|
||||
|
||||
|
|
@ -1321,7 +1326,9 @@ _mesa_free_context_data( GLcontext *ctx )
|
|||
#endif
|
||||
_mesa_free_program_data(ctx);
|
||||
_mesa_free_shader_state(ctx);
|
||||
#if FEATURE_ARB_occlusion_query
|
||||
_mesa_free_query_data(ctx);
|
||||
#endif
|
||||
|
||||
#if FEATURE_ARB_vertex_buffer_object
|
||||
_mesa_delete_buffer_object(ctx, ctx->Array.NullBufferObj);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue