mesa/main: Make FEATURE_histogram follow feature conventions.

As shown in mfeatures.h, this allows users of histogram.h to work without
knowing if the feature is available.
This commit is contained in:
Chia-I Wu
2009-09-07 18:06:00 +08:00
committed by Brian Paul
parent 2b36db496d
commit cab7ea0368
4 changed files with 47 additions and 65 deletions

View File

@@ -106,9 +106,7 @@
#include "fog.h"
#include "framebuffer.h"
#include "get.h"
#if FEATURE_histogram
#include "histogram.h"
#endif
#include "hint.h"
#include "hash.h"
#include "light.h"
@@ -693,9 +691,7 @@ init_attrib_groups(GLcontext *ctx)
ctx->RenderMode = GL_RENDER;
#endif
_mesa_init_fog( ctx );
#if FEATURE_histogram
_mesa_init_histogram( ctx );
#endif
_mesa_init_hint( ctx );
_mesa_init_line( ctx );
_mesa_init_lighting( ctx );