diff options
Diffstat (limited to 'mesalib/src/mapi/glapi/gen')
-rwxr-xr-x | mesalib/src/mapi/glapi/gen/glX_proto_recv.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesalib/src/mapi/glapi/gen/glX_proto_recv.py b/mesalib/src/mapi/glapi/gen/glX_proto_recv.py index 086fc97d7..84a404ce3 100755 --- a/mesalib/src/mapi/glapi/gen/glX_proto_recv.py +++ b/mesalib/src/mapi/glapi/gen/glX_proto_recv.py @@ -449,6 +449,8 @@ class PrintGlxDispatchFunctions(glX_proto_common.glx_print_proto): elif param.counter: print ' %s answerBuffer[200];' % (answer_type) print ' %s %s = __glXGetAnswerBuffer(cl, %s%s, answerBuffer, sizeof(answerBuffer), %u);' % (param.type_string(), param.name, param.counter, size_scale, type_size) + print ' if (%s == NULL)' % (param.name) + print ' return BadAlloc;' answer_string = param.name answer_count = param.counter elif c >= 1: |