diff options
author | Kenneth Graunke <[email protected]> | 2016-07-07 11:50:44 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-07-08 01:26:23 -0700 |
commit | b3c5df3ca4ca69006114565bf5d6d01c7b8b2934 (patch) | |
tree | b89a6cdfd5f4e808accb572af4d9d95a9a521178 /src/mesa/main/genmipmap.c | |
parent | b7be23b6e16c31293010dd926db82720a4954cf5 (diff) |
mesa: Mark R*32F formats as filterable when an extension is present.
GL_OES_texture_float_linear marks R32F, RG32F, RGB32F, and RGBA32F
as texture filterable.
Fixes glGenerateMipmap GL errors when visiting a WebGL demo in Chromium:
http://www.iamnop.com/particles
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/mesa/main/genmipmap.c')
-rw-r--r-- | src/mesa/main/genmipmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/genmipmap.c b/src/mesa/main/genmipmap.c index d917220f7e8..5e780c97ca8 100644 --- a/src/mesa/main/genmipmap.c +++ b/src/mesa/main/genmipmap.c @@ -90,7 +90,7 @@ _mesa_is_valid_generate_texture_mipmap_internalformat(struct gl_context *ctx, internalformat == GL_LUMINANCE_ALPHA || internalformat == GL_LUMINANCE || internalformat == GL_ALPHA || (_mesa_is_es3_color_renderable(internalformat) && - _mesa_is_es3_texture_filterable(internalformat)); + _mesa_is_es3_texture_filterable(ctx, internalformat)); } return (!_mesa_is_enum_format_integer(internalformat) && |