diff options
author | Ian Romanick <idr@us.ibm.com> | 2005-03-17 21:48:37 +0000 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2005-03-17 21:48:37 +0000 |
commit | 80a939cafb7a67837a9fc82e45b5ec85c5912a06 (patch) | |
tree | c0deaae4d238750dfae5ab7c7eea475d9ff264b5 /src/mesa/glapi/glX_proto_size.py | |
parent | 6af6a6931240b1e05b3bb7cc2b56df29193ea65a (diff) |
Enable the generation of server-side __glGetBooleanv_size and related
functions. There are two parts to this. First, a size element with a name
"Get" is shorthand for having four separate size elements with names
"GetIntegerv", "GetDoublev", "GetFloatv", and "GetBooleanv". Additionally,
a count of "?" is treated specially. This causes a call to a handcoded
function named "__gl<base name>_variable_size". This is *only* needed to
support GL_COMPRESSED_TEXTURE_FORMATS. That enum can return a variable
number of values depending how many compressed texture formats are supported
by the implementation.
Fix a problem with glGetProgram{Local,Env}Parameter[df]vARB,
glAreProgramsResidentNV, and glGetVertexAttribivNV. These changes only
affect code generated for the server-side.
The changes to enum.c are caused by enums added for the server-side
__glGetBooleanv_size functions.
Diffstat (limited to 'src/mesa/glapi/glX_proto_size.py')
-rw-r--r-- | src/mesa/glapi/glX_proto_size.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/glapi/glX_proto_size.py b/src/mesa/glapi/glX_proto_size.py index a3c339f52c..cc28b8951c 100644 --- a/src/mesa/glapi/glX_proto_size.py +++ b/src/mesa/glapi/glX_proto_size.py @@ -161,8 +161,11 @@ class PrintGlxSizeStubs_c(PrintGlxSizeStubs_common): def printRealHeader(self): print '' print '#include <GL/gl.h>' - print '#include "indirect_size.h"' + if self.which_functions & self.do_get: + print '#include "indirect_size_get.h"' + print '#include "indirect_size.h"' + print '' self.printHaveAlias() print '' |