summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/common/meta.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-11-16 01:46:40 +0100
committerMarek Olšák <[email protected]>2018-02-13 01:00:45 +0100
commita7882013d3e788a76cce638704c02b7bea0e67a1 (patch)
treec4205060362d8f7e8ac9d82254eea6c2822d570d /src/mesa/drivers/common/meta.h
parentd7550d783abc9a7bcfeee34aea2f03d2fc9db69a (diff)
mesa: reduce the size of gl_viewport_attrib
All drivers convert these to float, so there is no reason to use double. The piglit test that expects double precision from glGet will be adjusted not to require it (there is a piglit patch). gl_context::ViewportArray: 512 -> 384 bytes Reviewed-by: Mathias Fröhlich <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common/meta.h')
-rw-r--r--src/mesa/drivers/common/meta.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/common/meta.h b/src/mesa/drivers/common/meta.h
index 1c35ea3e0bf..dbe8a9af02f 100644
--- a/src/mesa/drivers/common/meta.h
+++ b/src/mesa/drivers/common/meta.h
@@ -158,7 +158,7 @@ struct save_state
/** MESA_META_VIEWPORT */
GLfloat ViewportX, ViewportY, ViewportW, ViewportH;
- GLclampd DepthNear, DepthFar;
+ GLclampf DepthNear, DepthFar;
/** MESA_META_CLAMP_FRAGMENT_COLOR */
GLenum ClampFragmentColor;