main: remove MAX_VIEWPORT_WIDTH and MAX_VIEWPORT_HEIGHT constants
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 1 Mar 2016 11:04:52 +0000 (12:04 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Wed, 2 Mar 2016 06:19:01 +0000 (07:19 +0100)
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/config.h
src/mesa/main/context.c

index 820ae072da60cff3e4202f47d311fc417d6bd733..bc5e56923b8954413fe5c4c9a0b8c2d42474153b 100644 (file)
  */
 #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
 
index 26eee28db4eaa8495516be7508933bcf21d5aa19..dbba136f526f1fe7e35bc9be62c7517a6904aeab 100644 (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. */