|
43 | 43 | function. This may happen for example when functions
|
44 | 44 | are added to a new version of an extension, but the
|
45 | 45 | extension string is not modified.
|
46 |
| - check_for_nullptr: Workaround for QTBUG-124370. Adds a check that ensures |
47 |
| - the function has been bound already. |
48 | 46 | By default, the function gets its name from the first name in its names or
|
49 | 47 | versions array. This can be overridden by supplying a 'known_as' key.
|
50 | 48 |
|
|
2982 | 2980 | 'arguments': 'HDC hdc', },
|
2983 | 2981 | { 'return_type': 'HGLRC',
|
2984 | 2982 | 'names': ['wglCreateContextAttribsARB'],
|
2985 |
| - 'arguments': 'HDC hDC, HGLRC hShareContext, const int* attribList', |
2986 |
| - 'check_for_nullptr': True, }, |
| 2983 | + 'arguments': 'HDC hDC, HGLRC hShareContext, const int* attribList', }, |
2987 | 2984 | { 'return_type': 'HGLRC',
|
2988 | 2985 | 'names': ['wglCreateLayerContext'],
|
2989 | 2986 | 'arguments': 'HDC hdc, int iLayerPlane', },
|
@@ -3730,12 +3727,8 @@ def MakeArgNames(arguments):
|
3730 | 3727 | file.write(' driver_->fn.%sFn(%s);\n' %
|
3731 | 3728 | (function_name, argument_names))
|
3732 | 3729 | else:
|
3733 |
| - if ('check_for_nullptr' in func): |
3734 |
| - file.write(' return driver_->fn.%sFn ?\n driver_->fn.%sFn(%s)\n : nullptr;\n' % |
3735 |
| - (function_name, function_name, argument_names)) |
3736 |
| - else: |
3737 |
| - file.write(' return driver_->fn.%sFn(%s);\n' % |
3738 |
| - (function_name, argument_names)) |
| 3730 | + file.write(' return driver_->fn.%sFn(%s);\n' % |
| 3731 | + (function_name, argument_names)) |
3739 | 3732 | file.write('}\n')
|
3740 | 3733 |
|
3741 | 3734 | # Write TraceGLApi functions
|
|
0 commit comments