summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2003-04-29 08:20:39 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2003-04-29 08:20:39 +0000
commitd31591ea15c105dc2ec61db315c02600f1bd96db (patch)
treee6d0d158529b65a6b5f9ff5c74ada2e9ebdaa11c
parent687e8a0c089df066d22c5fbdf8bd8d8a9cedc32a (diff)
Protect some swrast-specific code in MakeCurrent
-rw-r--r--src/mesa/main/context.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 114fe92ea2..42e5be8952 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -28,7 +28,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-/* $Id: context.c,v 1.188.2.1.2.16 2003/03/23 23:22:47 jrfonseca Exp $ */
+/* $Id: context.c,v 1.188.2.1.2.17 2003/04/29 08:20:39 keithw Exp $ */
/**
* \mainpage Mesa Core Module
@@ -1406,6 +1406,7 @@ _mesa_make_current2( GLcontext *newCtx, GLframebuffer *drawBuffer,
newCtx->ReadBuffer = readBuffer;
newCtx->NewState |= _NEW_BUFFERS;
+#if _HAVE_FULL_GL
if (drawBuffer->Width == 0 && drawBuffer->Height == 0) {
/* get initial window size */
GLuint bufWidth, bufHeight;
@@ -1440,6 +1441,7 @@ _mesa_make_current2( GLcontext *newCtx, GLframebuffer *drawBuffer,
newCtx->Driver.ResizeBuffers( readBuffer );
}
}
+#endif
}
/* Alert the driver - usually passed on to the sw t&l module,