diff options
author | Marek Olšák <[email protected]> | 2013-03-28 03:02:14 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-04-06 23:57:10 +0200 |
commit | 3264c3e99700389f0a3958db7c9c19673107d67a (patch) | |
tree | 2c26670d6e2940646f62742d739452ff2e3aa688 /src/mesa/main/version.c | |
parent | 9d4f67600b0a8f4b37eb2ed45b194e153669d11a (diff) |
mesa: allow drivers not to expose ARB_color_buffer_float in GL core profile
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/version.c')
-rw-r--r-- | src/mesa/main/version.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 3d4af5923c6..ecca446c195 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -233,7 +233,8 @@ compute_version(struct gl_context *ctx) const GLboolean ver_3_0 = (ver_2_1 && ctx->Const.GLSLVersion >= 130 && ctx->Const.MaxSamples >= 4 && - ctx->Extensions.ARB_color_buffer_float && + (ctx->API == API_OPENGL_CORE || + ctx->Extensions.ARB_color_buffer_float) && ctx->Extensions.ARB_depth_buffer_float && ctx->Extensions.ARB_half_float_pixel && ctx->Extensions.ARB_half_float_vertex && |