summaryrefslogtreecommitdiffstats
path: root/src/mapi/glapi/gen/gl_marshal.py
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-02-27 14:28:16 -0800
committerTimothy Arceri <[email protected]>2017-03-16 14:14:19 +1100
commit43d4f7a227eaa01ea4be32e598682abc912e8e83 (patch)
treef767bfddcd75d8adeacb83ce680b61ccd241de7c /src/mapi/glapi/gen/gl_marshal.py
parentb18755a457996cc4e7d9ca9d6beea9314de2d005 (diff)
mesa: Add support for asynchronous glDraw* on GL core.
Acked-by: Timothy Arceri <[email protected]> Acked-by: Marek Olšák <[email protected]> Tested-by: Dieter Nützel <[email protected]> Tested-by: Mike Lothian <[email protected]>
Diffstat (limited to 'src/mapi/glapi/gen/gl_marshal.py')
-rw-r--r--src/mapi/glapi/gen/gl_marshal.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mapi/glapi/gen/gl_marshal.py b/src/mapi/glapi/gen/gl_marshal.py
index 3b9868f9a1f..1a633435001 100644
--- a/src/mapi/glapi/gen/gl_marshal.py
+++ b/src/mapi/glapi/gen/gl_marshal.py
@@ -244,6 +244,10 @@ class PrintCode(gl_XML.gl_print_base):
self.print_sync_dispatch(func)
out('}')
+ if func.marshal == 'draw':
+ out('/* We relied on all vertex and index data being in VBOs */')
+ out('assert(ctx->API == API_OPENGL_CORE);')
+
out('}')
def print_async_body(self, func):