main: remove MAX_VIEWPORT_WIDTH and MAX_VIEWPORT_HEIGHT constants

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Samuel Iglesias Gonsálvez 2016-03-01 12:04:52 +01:00
parent aa849d97a0
commit add57b3fa8
2 changed files with 2 additions and 7 deletions

View file

@ -132,11 +132,6 @@
*/
#define MAX_TEXTURE_UNITS ((MAX_TEXTURE_COORD_UNITS > MAX_TEXTURE_IMAGE_UNITS) ? MAX_TEXTURE_COORD_UNITS : MAX_TEXTURE_IMAGE_UNITS)
/** Maximum viewport size */
#define MAX_VIEWPORT_WIDTH 16384
#define MAX_VIEWPORT_HEIGHT 16384
/** Maximun number of viewports supported with ARB_viewport_array */
#define MAX_VIEWPORTS 16

View file

@ -582,8 +582,8 @@ _mesa_init_constants(struct gl_constants *consts, gl_api api)
consts->MaxLights = MAX_LIGHTS;
consts->MaxShininess = 128.0;
consts->MaxSpotExponent = 128.0;
consts->MaxViewportWidth = MAX_VIEWPORT_WIDTH;
consts->MaxViewportHeight = MAX_VIEWPORT_HEIGHT;
consts->MaxViewportWidth = 16384;
consts->MaxViewportHeight = 16384;
consts->MinMapBufferAlignment = 64;
/* Driver must override these values if ARB_viewport_array is supported. */