summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_context.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2001-01-08 21:55:59 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2001-01-08 21:55:59 +0000
commitce656b6a0a103ae9cb41d509be353f0e661e3574 (patch)
tree1f877f14838b85d7db834cb38a040a362db83d6e /src/mesa/tnl/t_context.c
parentbfa023921c9d1aa872237e0ac6085160f7c2cbc5 (diff)
Fixed 'IRound' to 'IROUND' in mmath.h
Fixed fallback path for drawarrays/_tnl_hard_begin. Removed disabled debug code.
Diffstat (limited to 'src/mesa/tnl/t_context.c')
-rw-r--r--src/mesa/tnl/t_context.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c
index 7d04210eb6..93886b7110 100644
--- a/src/mesa/tnl/t_context.c
+++ b/src/mesa/tnl/t_context.c
@@ -1,4 +1,4 @@
-/* $Id: t_context.c,v 1.8 2001/01/05 02:26:49 keithw Exp $ */
+/* $Id: t_context.c,v 1.9 2001/01/08 21:56:00 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -39,6 +39,7 @@
#include "t_array_api.h"
#include "t_eval_api.h"
#include "t_imm_alloc.h"
+#include "t_imm_api.h"
#include "t_imm_exec.h"
#include "t_imm_dlist.h"
#include "t_pipeline.h"
@@ -84,6 +85,7 @@ _tnl_CreateContext( GLcontext *ctx )
/* Create the TNLcontext structure
*/
ctx->swtnl_context = tnl = CALLOC( sizeof(TNLcontext) );
+
if (!tnl) {
return GL_FALSE;
}
@@ -117,7 +119,6 @@ _tnl_CreateContext( GLcontext *ctx )
ctx->Driver.NeedFlush = FLUSH_UPDATE_CURRENT;
ctx->Driver.CurrentExecPrimitive = PRIM_OUTSIDE_BEGIN_END;
ctx->Driver.CurrentSavePrimitive = PRIM_UNKNOWN;
-
return GL_TRUE;
}