summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2003-10-14 11:23:08 +0000
committerKeith Whitwell <[email protected]>2003-10-14 11:23:08 +0000
commit6b692dc06ce64169282ab0c74521d802835417bf (patch)
treee26326fbef238a2fad60eda0d92078421d3f8ea2 /src
parentbe3c25458bc5377b4fb54fe66c1dadd4c0a9d855 (diff)
Make it clear that the driver (or tnl/ module) must supply
the DrawArray/DrawElements code for the outside-begin-end compilation states.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/dlist.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index da1f559a5df..bc758fae67d 100644
--- a/src/mesa/main/dlist.c
+++ b/src/mesa/main/dlist.c
@@ -7771,17 +7771,21 @@ void _mesa_save_vtxfmt_init( GLvertexformat *vfmt )
vfmt->VertexAttrib4fNV = save_VertexAttrib4fNV;
vfmt->VertexAttrib4fvNV = save_VertexAttrib4fvNV;
- vfmt->Rectf = save_Rectf;
vfmt->EvalMesh1 = _mesa_save_EvalMesh1;
vfmt->EvalMesh2 = _mesa_save_EvalMesh2;
+ vfmt->Rectf = save_Rectf;
- /* To implement as opcodes these would need new code for the
- * runtime outside-begin-end checks. As these functions aren't
- * actually needed at this point, I'll punt on that for now:
+ /* The driver is required to implement these as
+ * 1) They can probably do a better job.
+ * 2) A lot of new mechanisms would have to be added to this module
+ * to support it. That code would probably never get used,
+ * because of (1).
*/
- vfmt->DrawArrays = 1;
- vfmt->DrawElements = 1;
- vfmt->DrawRangeElements = 1;
+#if 0
+ vfmt->DrawArrays = 0;
+ vfmt->DrawElements = 0;
+ vfmt->DrawRangeElements = 0;
+#endif
}