From add57b3fa8551cca7a1cb94573b4ef1d9a6a52c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Samuel=20Iglesias=20Gons=C3=A1lvez?= Date: Tue, 1 Mar 2016 12:04:52 +0100 Subject: [PATCH] main: remove MAX_VIEWPORT_WIDTH and MAX_VIEWPORT_HEIGHT constants MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Samuel Iglesias Gonsálvez Reviewed-by: Kenneth Graunke --- src/mesa/main/config.h | 5 ----- src/mesa/main/context.c | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h index 820ae072da6..bc5e56923b8 100644 --- a/src/mesa/main/config.h +++ b/src/mesa/main/config.h @@ -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 diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 26eee28db4e..dbba136f526 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -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. */ -- 2.30.2