summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/glformats.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-07-07 11:50:44 -0700
committerKenneth Graunke <[email protected]>2016-07-08 01:26:23 -0700
commitb3c5df3ca4ca69006114565bf5d6d01c7b8b2934 (patch)
treeb89a6cdfd5f4e808accb572af4d9d95a9a521178 /src/mesa/main/glformats.h
parentb7be23b6e16c31293010dd926db82720a4954cf5 (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/glformats.h')
-rw-r--r--src/mesa/main/glformats.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/glformats.h b/src/mesa/main/glformats.h
index c73f464e5f9..782e0f2edc8 100644
--- a/src/mesa/main/glformats.h
+++ b/src/mesa/main/glformats.h
@@ -149,7 +149,8 @@ extern bool
_mesa_is_es3_color_renderable(GLenum internal_format);
extern bool
-_mesa_is_es3_texture_filterable(GLenum internal_format);
+_mesa_is_es3_texture_filterable(const struct gl_context *ctx,
+ GLenum internal_format);
#ifdef __cplusplus
}