summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormartina.kollarova <martina.kollarova@intel.com>2016-03-11 08:46:34 -0800
committerCommit bot <commit-bot@chromium.org>2016-03-11 16:47:56 +0000
commit51f03fb7c106cdbadb014dcba1bf6b570da928b7 (patch)
tree44862487f7ebd740b3c72b5f38f8f92146cce1de
parent564a23ef69b81c62a54d1b86b843ec5f49c037a9 (diff)
downloadchromium_src-51f03fb7c106cdbadb014dcba1bf6b570da928b7.zip
chromium_src-51f03fb7c106cdbadb014dcba1bf6b570da928b7.tar.gz
chromium_src-51f03fb7c106cdbadb014dcba1bf6b570da928b7.tar.bz2
Add DCHECK for nullptr in gl bindings
BUG=593666 Review URL: https://codereview.chromium.org/1775353002 Cr-Commit-Position: refs/heads/master@{#380651}
-rwxr-xr-xui/gl/generate_bindings.py4
-rw-r--r--ui/gl/gl_bindings_autogen_egl.cc45
-rw-r--r--ui/gl/gl_bindings_autogen_gl.cc323
-rw-r--r--ui/gl/gl_bindings_autogen_glx.cc48
-rw-r--r--ui/gl/gl_bindings_autogen_osmesa.cc11
-rw-r--r--ui/gl/gl_bindings_autogen_wgl.cc18
6 files changed, 449 insertions, 0 deletions
diff --git a/ui/gl/generate_bindings.py b/ui/gl/generate_bindings.py
index b315802..1cba0756 100755
--- a/ui/gl/generate_bindings.py
+++ b/ui/gl/generate_bindings.py
@@ -2174,6 +2174,8 @@ void Driver%s::InitializeExtensionBindings() {
if return_type == 'void':
file.write(' GL_SERVICE_LOG("%s" << "(" %s << ")");\n' %
(function_name, log_argument_names))
+ file.write(' DCHECK(g_driver_%s.debug_fn.%sFn != nullptr);\n' %
+ (set_name.lower(), function_name))
file.write(' g_driver_%s.debug_fn.%sFn(%s);\n' %
(set_name.lower(), function_name, argument_names))
if 'logging_code' in func:
@@ -2186,6 +2188,8 @@ void Driver%s::InitializeExtensionBindings() {
else:
file.write(' GL_SERVICE_LOG("%s" << "(" %s << ")");\n' %
(function_name, log_argument_names))
+ file.write(' DCHECK(g_driver_%s.debug_fn.%sFn != nullptr);\n' %
+ (set_name.lower(), function_name))
file.write(' %s result = g_driver_%s.debug_fn.%sFn(%s);\n' %
(return_type, set_name.lower(), function_name, argument_names))
if 'logging_code' in func:
diff --git a/ui/gl/gl_bindings_autogen_egl.cc b/ui/gl/gl_bindings_autogen_egl.cc
index 2bb0bfd..c2461d8 100644
--- a/ui/gl/gl_bindings_autogen_egl.cc
+++ b/ui/gl/gl_bindings_autogen_egl.cc
@@ -203,6 +203,7 @@ extern "C" {
static EGLBoolean GL_BINDING_CALL Debug_eglBindAPI(EGLenum api) {
GL_SERVICE_LOG("eglBindAPI"
<< "(" << api << ")");
+ DCHECK(g_driver_egl.debug_fn.eglBindAPIFn != nullptr);
EGLBoolean result = g_driver_egl.debug_fn.eglBindAPIFn(api);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -213,6 +214,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglBindTexImage(EGLDisplay dpy,
EGLint buffer) {
GL_SERVICE_LOG("eglBindTexImage"
<< "(" << dpy << ", " << surface << ", " << buffer << ")");
+ DCHECK(g_driver_egl.debug_fn.eglBindTexImageFn != nullptr);
EGLBoolean result =
g_driver_egl.debug_fn.eglBindTexImageFn(dpy, surface, buffer);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -230,6 +232,7 @@ Debug_eglChooseConfig(EGLDisplay dpy,
<< ", " << static_cast<const void*>(configs) << ", "
<< config_size << ", " << static_cast<const void*>(num_config)
<< ")");
+ DCHECK(g_driver_egl.debug_fn.eglChooseConfigFn != nullptr);
EGLBoolean result = g_driver_egl.debug_fn.eglChooseConfigFn(
dpy, attrib_list, configs, config_size, num_config);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -243,6 +246,7 @@ static EGLint GL_BINDING_CALL Debug_eglClientWaitSyncKHR(EGLDisplay dpy,
GL_SERVICE_LOG("eglClientWaitSyncKHR"
<< "(" << dpy << ", " << sync << ", " << flags << ", "
<< timeout << ")");
+ DCHECK(g_driver_egl.debug_fn.eglClientWaitSyncKHRFn != nullptr);
EGLint result =
g_driver_egl.debug_fn.eglClientWaitSyncKHRFn(dpy, sync, flags, timeout);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -255,6 +259,7 @@ Debug_eglCopyBuffers(EGLDisplay dpy,
EGLNativePixmapType target) {
GL_SERVICE_LOG("eglCopyBuffers"
<< "(" << dpy << ", " << surface << ", " << target << ")");
+ DCHECK(g_driver_egl.debug_fn.eglCopyBuffersFn != nullptr);
EGLBoolean result =
g_driver_egl.debug_fn.eglCopyBuffersFn(dpy, surface, target);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -269,6 +274,7 @@ Debug_eglCreateContext(EGLDisplay dpy,
GL_SERVICE_LOG("eglCreateContext"
<< "(" << dpy << ", " << config << ", " << share_context
<< ", " << static_cast<const void*>(attrib_list) << ")");
+ DCHECK(g_driver_egl.debug_fn.eglCreateContextFn != nullptr);
EGLContext result = g_driver_egl.debug_fn.eglCreateContextFn(
dpy, config, share_context, attrib_list);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -285,6 +291,7 @@ Debug_eglCreateImageKHR(EGLDisplay dpy,
<< "(" << dpy << ", " << ctx << ", " << target << ", "
<< buffer << ", " << static_cast<const void*>(attrib_list)
<< ")");
+ DCHECK(g_driver_egl.debug_fn.eglCreateImageKHRFn != nullptr);
EGLImageKHR result = g_driver_egl.debug_fn.eglCreateImageKHRFn(
dpy, ctx, target, buffer, attrib_list);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -301,6 +308,7 @@ Debug_eglCreatePbufferFromClientBuffer(EGLDisplay dpy,
<< "(" << dpy << ", " << buftype << ", "
<< static_cast<const void*>(buffer) << ", " << config << ", "
<< static_cast<const void*>(attrib_list) << ")");
+ DCHECK(g_driver_egl.debug_fn.eglCreatePbufferFromClientBufferFn != nullptr);
EGLSurface result = g_driver_egl.debug_fn.eglCreatePbufferFromClientBufferFn(
dpy, buftype, buffer, config, attrib_list);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -314,6 +322,7 @@ Debug_eglCreatePbufferSurface(EGLDisplay dpy,
GL_SERVICE_LOG("eglCreatePbufferSurface"
<< "(" << dpy << ", " << config << ", "
<< static_cast<const void*>(attrib_list) << ")");
+ DCHECK(g_driver_egl.debug_fn.eglCreatePbufferSurfaceFn != nullptr);
EGLSurface result =
g_driver_egl.debug_fn.eglCreatePbufferSurfaceFn(dpy, config, attrib_list);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -328,6 +337,7 @@ Debug_eglCreatePixmapSurface(EGLDisplay dpy,
GL_SERVICE_LOG("eglCreatePixmapSurface"
<< "(" << dpy << ", " << config << ", " << pixmap << ", "
<< static_cast<const void*>(attrib_list) << ")");
+ DCHECK(g_driver_egl.debug_fn.eglCreatePixmapSurfaceFn != nullptr);
EGLSurface result = g_driver_egl.debug_fn.eglCreatePixmapSurfaceFn(
dpy, config, pixmap, attrib_list);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -341,6 +351,7 @@ Debug_eglCreateSyncKHR(EGLDisplay dpy,
GL_SERVICE_LOG("eglCreateSyncKHR"
<< "(" << dpy << ", " << type << ", "
<< static_cast<const void*>(attrib_list) << ")");
+ DCHECK(g_driver_egl.debug_fn.eglCreateSyncKHRFn != nullptr);
EGLSyncKHR result =
g_driver_egl.debug_fn.eglCreateSyncKHRFn(dpy, type, attrib_list);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -355,6 +366,7 @@ Debug_eglCreateWindowSurface(EGLDisplay dpy,
GL_SERVICE_LOG("eglCreateWindowSurface"
<< "(" << dpy << ", " << config << ", " << win << ", "
<< static_cast<const void*>(attrib_list) << ")");
+ DCHECK(g_driver_egl.debug_fn.eglCreateWindowSurfaceFn != nullptr);
EGLSurface result = g_driver_egl.debug_fn.eglCreateWindowSurfaceFn(
dpy, config, win, attrib_list);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -365,6 +377,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglDestroyContext(EGLDisplay dpy,
EGLContext ctx) {
GL_SERVICE_LOG("eglDestroyContext"
<< "(" << dpy << ", " << ctx << ")");
+ DCHECK(g_driver_egl.debug_fn.eglDestroyContextFn != nullptr);
EGLBoolean result = g_driver_egl.debug_fn.eglDestroyContextFn(dpy, ctx);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -374,6 +387,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglDestroyImageKHR(EGLDisplay dpy,
EGLImageKHR image) {
GL_SERVICE_LOG("eglDestroyImageKHR"
<< "(" << dpy << ", " << image << ")");
+ DCHECK(g_driver_egl.debug_fn.eglDestroyImageKHRFn != nullptr);
EGLBoolean result = g_driver_egl.debug_fn.eglDestroyImageKHRFn(dpy, image);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -383,6 +397,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglDestroySurface(EGLDisplay dpy,
EGLSurface surface) {
GL_SERVICE_LOG("eglDestroySurface"
<< "(" << dpy << ", " << surface << ")");
+ DCHECK(g_driver_egl.debug_fn.eglDestroySurfaceFn != nullptr);
EGLBoolean result = g_driver_egl.debug_fn.eglDestroySurfaceFn(dpy, surface);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -392,6 +407,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglDestroySyncKHR(EGLDisplay dpy,
EGLSyncKHR sync) {
GL_SERVICE_LOG("eglDestroySyncKHR"
<< "(" << dpy << ", " << sync << ")");
+ DCHECK(g_driver_egl.debug_fn.eglDestroySyncKHRFn != nullptr);
EGLBoolean result = g_driver_egl.debug_fn.eglDestroySyncKHRFn(dpy, sync);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -404,6 +420,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglGetConfigAttrib(EGLDisplay dpy,
GL_SERVICE_LOG("eglGetConfigAttrib"
<< "(" << dpy << ", " << config << ", " << attribute << ", "
<< static_cast<const void*>(value) << ")");
+ DCHECK(g_driver_egl.debug_fn.eglGetConfigAttribFn != nullptr);
EGLBoolean result =
g_driver_egl.debug_fn.eglGetConfigAttribFn(dpy, config, attribute, value);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -418,6 +435,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglGetConfigs(EGLDisplay dpy,
<< "(" << dpy << ", " << static_cast<const void*>(configs)
<< ", " << config_size << ", "
<< static_cast<const void*>(num_config) << ")");
+ DCHECK(g_driver_egl.debug_fn.eglGetConfigsFn != nullptr);
EGLBoolean result = g_driver_egl.debug_fn.eglGetConfigsFn(
dpy, configs, config_size, num_config);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -428,6 +446,7 @@ static EGLContext GL_BINDING_CALL Debug_eglGetCurrentContext(void) {
GL_SERVICE_LOG("eglGetCurrentContext"
<< "("
<< ")");
+ DCHECK(g_driver_egl.debug_fn.eglGetCurrentContextFn != nullptr);
EGLContext result = g_driver_egl.debug_fn.eglGetCurrentContextFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -437,6 +456,7 @@ static EGLDisplay GL_BINDING_CALL Debug_eglGetCurrentDisplay(void) {
GL_SERVICE_LOG("eglGetCurrentDisplay"
<< "("
<< ")");
+ DCHECK(g_driver_egl.debug_fn.eglGetCurrentDisplayFn != nullptr);
EGLDisplay result = g_driver_egl.debug_fn.eglGetCurrentDisplayFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -445,6 +465,7 @@ static EGLDisplay GL_BINDING_CALL Debug_eglGetCurrentDisplay(void) {
static EGLSurface GL_BINDING_CALL Debug_eglGetCurrentSurface(EGLint readdraw) {
GL_SERVICE_LOG("eglGetCurrentSurface"
<< "(" << readdraw << ")");
+ DCHECK(g_driver_egl.debug_fn.eglGetCurrentSurfaceFn != nullptr);
EGLSurface result = g_driver_egl.debug_fn.eglGetCurrentSurfaceFn(readdraw);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -454,6 +475,7 @@ static EGLDisplay GL_BINDING_CALL
Debug_eglGetDisplay(EGLNativeDisplayType display_id) {
GL_SERVICE_LOG("eglGetDisplay"
<< "(" << display_id << ")");
+ DCHECK(g_driver_egl.debug_fn.eglGetDisplayFn != nullptr);
EGLDisplay result = g_driver_egl.debug_fn.eglGetDisplayFn(display_id);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -463,6 +485,7 @@ static EGLint GL_BINDING_CALL Debug_eglGetError(void) {
GL_SERVICE_LOG("eglGetError"
<< "("
<< ")");
+ DCHECK(g_driver_egl.debug_fn.eglGetErrorFn != nullptr);
EGLint result = g_driver_egl.debug_fn.eglGetErrorFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -476,6 +499,7 @@ Debug_eglGetPlatformDisplayEXT(EGLenum platform,
<< "(" << platform << ", "
<< static_cast<const void*>(native_display) << ", "
<< static_cast<const void*>(attrib_list) << ")");
+ DCHECK(g_driver_egl.debug_fn.eglGetPlatformDisplayEXTFn != nullptr);
EGLDisplay result = g_driver_egl.debug_fn.eglGetPlatformDisplayEXTFn(
platform, native_display, attrib_list);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -486,6 +510,7 @@ static __eglMustCastToProperFunctionPointerType GL_BINDING_CALL
Debug_eglGetProcAddress(const char* procname) {
GL_SERVICE_LOG("eglGetProcAddress"
<< "(" << procname << ")");
+ DCHECK(g_driver_egl.debug_fn.eglGetProcAddressFn != nullptr);
__eglMustCastToProperFunctionPointerType result =
g_driver_egl.debug_fn.eglGetProcAddressFn(procname);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -499,6 +524,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglGetSyncAttribKHR(EGLDisplay dpy,
GL_SERVICE_LOG("eglGetSyncAttribKHR"
<< "(" << dpy << ", " << sync << ", " << attribute << ", "
<< static_cast<const void*>(value) << ")");
+ DCHECK(g_driver_egl.debug_fn.eglGetSyncAttribKHRFn != nullptr);
EGLBoolean result =
g_driver_egl.debug_fn.eglGetSyncAttribKHRFn(dpy, sync, attribute, value);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -516,6 +542,7 @@ Debug_eglGetSyncValuesCHROMIUM(EGLDisplay dpy,
<< static_cast<const void*>(ust) << ", "
<< static_cast<const void*>(msc) << ", "
<< static_cast<const void*>(sbc) << ")");
+ DCHECK(g_driver_egl.debug_fn.eglGetSyncValuesCHROMIUMFn != nullptr);
EGLBoolean result = g_driver_egl.debug_fn.eglGetSyncValuesCHROMIUMFn(
dpy, surface, ust, msc, sbc);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -528,6 +555,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglInitialize(EGLDisplay dpy,
GL_SERVICE_LOG("eglInitialize"
<< "(" << dpy << ", " << static_cast<const void*>(major)
<< ", " << static_cast<const void*>(minor) << ")");
+ DCHECK(g_driver_egl.debug_fn.eglInitializeFn != nullptr);
EGLBoolean result = g_driver_egl.debug_fn.eglInitializeFn(dpy, major, minor);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -540,6 +568,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglMakeCurrent(EGLDisplay dpy,
GL_SERVICE_LOG("eglMakeCurrent"
<< "(" << dpy << ", " << draw << ", " << read << ", " << ctx
<< ")");
+ DCHECK(g_driver_egl.debug_fn.eglMakeCurrentFn != nullptr);
EGLBoolean result =
g_driver_egl.debug_fn.eglMakeCurrentFn(dpy, draw, read, ctx);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -555,6 +584,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglPostSubBufferNV(EGLDisplay dpy,
GL_SERVICE_LOG("eglPostSubBufferNV"
<< "(" << dpy << ", " << surface << ", " << x << ", " << y
<< ", " << width << ", " << height << ")");
+ DCHECK(g_driver_egl.debug_fn.eglPostSubBufferNVFn != nullptr);
EGLBoolean result = g_driver_egl.debug_fn.eglPostSubBufferNVFn(
dpy, surface, x, y, width, height);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -565,6 +595,7 @@ static EGLenum GL_BINDING_CALL Debug_eglQueryAPI(void) {
GL_SERVICE_LOG("eglQueryAPI"
<< "("
<< ")");
+ DCHECK(g_driver_egl.debug_fn.eglQueryAPIFn != nullptr);
EGLenum result = g_driver_egl.debug_fn.eglQueryAPIFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -577,6 +608,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglQueryContext(EGLDisplay dpy,
GL_SERVICE_LOG("eglQueryContext"
<< "(" << dpy << ", " << ctx << ", " << attribute << ", "
<< static_cast<const void*>(value) << ")");
+ DCHECK(g_driver_egl.debug_fn.eglQueryContextFn != nullptr);
EGLBoolean result =
g_driver_egl.debug_fn.eglQueryContextFn(dpy, ctx, attribute, value);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -587,6 +619,7 @@ static const char* GL_BINDING_CALL Debug_eglQueryString(EGLDisplay dpy,
EGLint name) {
GL_SERVICE_LOG("eglQueryString"
<< "(" << dpy << ", " << name << ")");
+ DCHECK(g_driver_egl.debug_fn.eglQueryStringFn != nullptr);
const char* result = g_driver_egl.debug_fn.eglQueryStringFn(dpy, name);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -599,6 +632,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglQuerySurface(EGLDisplay dpy,
GL_SERVICE_LOG("eglQuerySurface"
<< "(" << dpy << ", " << surface << ", " << attribute << ", "
<< static_cast<const void*>(value) << ")");
+ DCHECK(g_driver_egl.debug_fn.eglQuerySurfaceFn != nullptr);
EGLBoolean result =
g_driver_egl.debug_fn.eglQuerySurfaceFn(dpy, surface, attribute, value);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -613,6 +647,7 @@ Debug_eglQuerySurfacePointerANGLE(EGLDisplay dpy,
GL_SERVICE_LOG("eglQuerySurfacePointerANGLE"
<< "(" << dpy << ", " << surface << ", " << attribute << ", "
<< value << ")");
+ DCHECK(g_driver_egl.debug_fn.eglQuerySurfacePointerANGLEFn != nullptr);
EGLBoolean result = g_driver_egl.debug_fn.eglQuerySurfacePointerANGLEFn(
dpy, surface, attribute, value);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -624,6 +659,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglReleaseTexImage(EGLDisplay dpy,
EGLint buffer) {
GL_SERVICE_LOG("eglReleaseTexImage"
<< "(" << dpy << ", " << surface << ", " << buffer << ")");
+ DCHECK(g_driver_egl.debug_fn.eglReleaseTexImageFn != nullptr);
EGLBoolean result =
g_driver_egl.debug_fn.eglReleaseTexImageFn(dpy, surface, buffer);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -634,6 +670,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglReleaseThread(void) {
GL_SERVICE_LOG("eglReleaseThread"
<< "("
<< ")");
+ DCHECK(g_driver_egl.debug_fn.eglReleaseThreadFn != nullptr);
EGLBoolean result = g_driver_egl.debug_fn.eglReleaseThreadFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -646,6 +683,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglSurfaceAttrib(EGLDisplay dpy,
GL_SERVICE_LOG("eglSurfaceAttrib"
<< "(" << dpy << ", " << surface << ", " << attribute << ", "
<< value << ")");
+ DCHECK(g_driver_egl.debug_fn.eglSurfaceAttribFn != nullptr);
EGLBoolean result =
g_driver_egl.debug_fn.eglSurfaceAttribFn(dpy, surface, attribute, value);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -656,6 +694,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglSwapBuffers(EGLDisplay dpy,
EGLSurface surface) {
GL_SERVICE_LOG("eglSwapBuffers"
<< "(" << dpy << ", " << surface << ")");
+ DCHECK(g_driver_egl.debug_fn.eglSwapBuffersFn != nullptr);
EGLBoolean result = g_driver_egl.debug_fn.eglSwapBuffersFn(dpy, surface);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -665,6 +704,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglSwapInterval(EGLDisplay dpy,
EGLint interval) {
GL_SERVICE_LOG("eglSwapInterval"
<< "(" << dpy << ", " << interval << ")");
+ DCHECK(g_driver_egl.debug_fn.eglSwapIntervalFn != nullptr);
EGLBoolean result = g_driver_egl.debug_fn.eglSwapIntervalFn(dpy, interval);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -673,6 +713,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglSwapInterval(EGLDisplay dpy,
static EGLBoolean GL_BINDING_CALL Debug_eglTerminate(EGLDisplay dpy) {
GL_SERVICE_LOG("eglTerminate"
<< "(" << dpy << ")");
+ DCHECK(g_driver_egl.debug_fn.eglTerminateFn != nullptr);
EGLBoolean result = g_driver_egl.debug_fn.eglTerminateFn(dpy);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -682,6 +723,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglWaitClient(void) {
GL_SERVICE_LOG("eglWaitClient"
<< "("
<< ")");
+ DCHECK(g_driver_egl.debug_fn.eglWaitClientFn != nullptr);
EGLBoolean result = g_driver_egl.debug_fn.eglWaitClientFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -691,6 +733,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglWaitGL(void) {
GL_SERVICE_LOG("eglWaitGL"
<< "("
<< ")");
+ DCHECK(g_driver_egl.debug_fn.eglWaitGLFn != nullptr);
EGLBoolean result = g_driver_egl.debug_fn.eglWaitGLFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -699,6 +742,7 @@ static EGLBoolean GL_BINDING_CALL Debug_eglWaitGL(void) {
static EGLBoolean GL_BINDING_CALL Debug_eglWaitNative(EGLint engine) {
GL_SERVICE_LOG("eglWaitNative"
<< "(" << engine << ")");
+ DCHECK(g_driver_egl.debug_fn.eglWaitNativeFn != nullptr);
EGLBoolean result = g_driver_egl.debug_fn.eglWaitNativeFn(engine);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -709,6 +753,7 @@ static EGLint GL_BINDING_CALL Debug_eglWaitSyncKHR(EGLDisplay dpy,
EGLint flags) {
GL_SERVICE_LOG("eglWaitSyncKHR"
<< "(" << dpy << ", " << sync << ", " << flags << ")");
+ DCHECK(g_driver_egl.debug_fn.eglWaitSyncKHRFn != nullptr);
EGLint result = g_driver_egl.debug_fn.eglWaitSyncKHRFn(dpy, sync, flags);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
diff --git a/ui/gl/gl_bindings_autogen_gl.cc b/ui/gl/gl_bindings_autogen_gl.cc
index 00cdc81..63c1f23 100644
--- a/ui/gl/gl_bindings_autogen_gl.cc
+++ b/ui/gl/gl_bindings_autogen_gl.cc
@@ -2036,6 +2036,7 @@ extern "C" {
static void GL_BINDING_CALL Debug_glActiveTexture(GLenum texture) {
GL_SERVICE_LOG("glActiveTexture"
<< "(" << GLEnums::GetStringEnum(texture) << ")");
+ DCHECK(g_driver_gl.debug_fn.glActiveTextureFn != nullptr);
g_driver_gl.debug_fn.glActiveTextureFn(texture);
}
@@ -2043,6 +2044,8 @@ static void GL_BINDING_CALL Debug_glApplyFramebufferAttachmentCMAAINTEL(void) {
GL_SERVICE_LOG("glApplyFramebufferAttachmentCMAAINTEL"
<< "("
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glApplyFramebufferAttachmentCMAAINTELFn !=
+ nullptr);
g_driver_gl.debug_fn.glApplyFramebufferAttachmentCMAAINTELFn();
}
@@ -2050,12 +2053,14 @@ static void GL_BINDING_CALL Debug_glAttachShader(GLuint program,
GLuint shader) {
GL_SERVICE_LOG("glAttachShader"
<< "(" << program << ", " << shader << ")");
+ DCHECK(g_driver_gl.debug_fn.glAttachShaderFn != nullptr);
g_driver_gl.debug_fn.glAttachShaderFn(program, shader);
}
static void GL_BINDING_CALL Debug_glBeginQuery(GLenum target, GLuint id) {
GL_SERVICE_LOG("glBeginQuery"
<< "(" << GLEnums::GetStringEnum(target) << ", " << id << ")");
+ DCHECK(g_driver_gl.debug_fn.glBeginQueryFn != nullptr);
g_driver_gl.debug_fn.glBeginQueryFn(target, id);
}
@@ -2063,6 +2068,7 @@ static void GL_BINDING_CALL
Debug_glBeginTransformFeedback(GLenum primitiveMode) {
GL_SERVICE_LOG("glBeginTransformFeedback"
<< "(" << GLEnums::GetStringEnum(primitiveMode) << ")");
+ DCHECK(g_driver_gl.debug_fn.glBeginTransformFeedbackFn != nullptr);
g_driver_gl.debug_fn.glBeginTransformFeedbackFn(primitiveMode);
}
@@ -2071,6 +2077,7 @@ static void GL_BINDING_CALL Debug_glBindAttribLocation(GLuint program,
const char* name) {
GL_SERVICE_LOG("glBindAttribLocation"
<< "(" << program << ", " << index << ", " << name << ")");
+ DCHECK(g_driver_gl.debug_fn.glBindAttribLocationFn != nullptr);
g_driver_gl.debug_fn.glBindAttribLocationFn(program, index, name);
}
@@ -2078,6 +2085,7 @@ static void GL_BINDING_CALL Debug_glBindBuffer(GLenum target, GLuint buffer) {
GL_SERVICE_LOG("glBindBuffer"
<< "(" << GLEnums::GetStringEnum(target) << ", " << buffer
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glBindBufferFn != nullptr);
g_driver_gl.debug_fn.glBindBufferFn(target, buffer);
}
@@ -2087,6 +2095,7 @@ static void GL_BINDING_CALL Debug_glBindBufferBase(GLenum target,
GL_SERVICE_LOG("glBindBufferBase"
<< "(" << GLEnums::GetStringEnum(target) << ", " << index
<< ", " << buffer << ")");
+ DCHECK(g_driver_gl.debug_fn.glBindBufferBaseFn != nullptr);
g_driver_gl.debug_fn.glBindBufferBaseFn(target, index, buffer);
}
@@ -2098,6 +2107,7 @@ static void GL_BINDING_CALL Debug_glBindBufferRange(GLenum target,
GL_SERVICE_LOG("glBindBufferRange"
<< "(" << GLEnums::GetStringEnum(target) << ", " << index
<< ", " << buffer << ", " << offset << ", " << size << ")");
+ DCHECK(g_driver_gl.debug_fn.glBindBufferRangeFn != nullptr);
g_driver_gl.debug_fn.glBindBufferRangeFn(target, index, buffer, offset, size);
}
@@ -2107,6 +2117,7 @@ static void GL_BINDING_CALL Debug_glBindFragDataLocation(GLuint program,
GL_SERVICE_LOG("glBindFragDataLocation"
<< "(" << program << ", " << colorNumber << ", " << name
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glBindFragDataLocationFn != nullptr);
g_driver_gl.debug_fn.glBindFragDataLocationFn(program, colorNumber, name);
}
@@ -2118,6 +2129,7 @@ Debug_glBindFragDataLocationIndexed(GLuint program,
GL_SERVICE_LOG("glBindFragDataLocationIndexed"
<< "(" << program << ", " << colorNumber << ", " << index
<< ", " << name << ")");
+ DCHECK(g_driver_gl.debug_fn.glBindFragDataLocationIndexedFn != nullptr);
g_driver_gl.debug_fn.glBindFragDataLocationIndexedFn(program, colorNumber,
index, name);
}
@@ -2127,6 +2139,7 @@ static void GL_BINDING_CALL Debug_glBindFramebufferEXT(GLenum target,
GL_SERVICE_LOG("glBindFramebufferEXT"
<< "(" << GLEnums::GetStringEnum(target) << ", " << framebuffer
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glBindFramebufferEXTFn != nullptr);
g_driver_gl.debug_fn.glBindFramebufferEXTFn(target, framebuffer);
}
@@ -2141,6 +2154,7 @@ static void GL_BINDING_CALL Debug_glBindImageTextureEXT(GLuint index,
<< "(" << index << ", " << texture << ", " << level << ", "
<< GLEnums::GetStringBool(layered) << ", " << layer << ", "
<< GLEnums::GetStringEnum(access) << ", " << format << ")");
+ DCHECK(g_driver_gl.debug_fn.glBindImageTextureEXTFn != nullptr);
g_driver_gl.debug_fn.glBindImageTextureEXTFn(index, texture, level, layered,
layer, access, format);
}
@@ -2150,12 +2164,14 @@ static void GL_BINDING_CALL Debug_glBindRenderbufferEXT(GLenum target,
GL_SERVICE_LOG("glBindRenderbufferEXT"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< renderbuffer << ")");
+ DCHECK(g_driver_gl.debug_fn.glBindRenderbufferEXTFn != nullptr);
g_driver_gl.debug_fn.glBindRenderbufferEXTFn(target, renderbuffer);
}
static void GL_BINDING_CALL Debug_glBindSampler(GLuint unit, GLuint sampler) {
GL_SERVICE_LOG("glBindSampler"
<< "(" << unit << ", " << sampler << ")");
+ DCHECK(g_driver_gl.debug_fn.glBindSamplerFn != nullptr);
g_driver_gl.debug_fn.glBindSamplerFn(unit, sampler);
}
@@ -2163,6 +2179,7 @@ static void GL_BINDING_CALL Debug_glBindTexture(GLenum target, GLuint texture) {
GL_SERVICE_LOG("glBindTexture"
<< "(" << GLEnums::GetStringEnum(target) << ", " << texture
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glBindTextureFn != nullptr);
g_driver_gl.debug_fn.glBindTextureFn(target, texture);
}
@@ -2170,12 +2187,14 @@ static void GL_BINDING_CALL Debug_glBindTransformFeedback(GLenum target,
GLuint id) {
GL_SERVICE_LOG("glBindTransformFeedback"
<< "(" << GLEnums::GetStringEnum(target) << ", " << id << ")");
+ DCHECK(g_driver_gl.debug_fn.glBindTransformFeedbackFn != nullptr);
g_driver_gl.debug_fn.glBindTransformFeedbackFn(target, id);
}
static void GL_BINDING_CALL Debug_glBindVertexArrayOES(GLuint array) {
GL_SERVICE_LOG("glBindVertexArrayOES"
<< "(" << array << ")");
+ DCHECK(g_driver_gl.debug_fn.glBindVertexArrayOESFn != nullptr);
g_driver_gl.debug_fn.glBindVertexArrayOESFn(array);
}
@@ -2183,6 +2202,7 @@ static void GL_BINDING_CALL Debug_glBlendBarrierKHR(void) {
GL_SERVICE_LOG("glBlendBarrierKHR"
<< "("
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glBlendBarrierKHRFn != nullptr);
g_driver_gl.debug_fn.glBlendBarrierKHRFn();
}
@@ -2193,12 +2213,14 @@ static void GL_BINDING_CALL Debug_glBlendColor(GLclampf red,
GL_SERVICE_LOG("glBlendColor"
<< "(" << red << ", " << green << ", " << blue << ", " << alpha
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glBlendColorFn != nullptr);
g_driver_gl.debug_fn.glBlendColorFn(red, green, blue, alpha);
}
static void GL_BINDING_CALL Debug_glBlendEquation(GLenum mode) {
GL_SERVICE_LOG("glBlendEquation"
<< "(" << GLEnums::GetStringEnum(mode) << ")");
+ DCHECK(g_driver_gl.debug_fn.glBlendEquationFn != nullptr);
g_driver_gl.debug_fn.glBlendEquationFn(mode);
}
@@ -2207,6 +2229,7 @@ static void GL_BINDING_CALL Debug_glBlendEquationSeparate(GLenum modeRGB,
GL_SERVICE_LOG("glBlendEquationSeparate"
<< "(" << GLEnums::GetStringEnum(modeRGB) << ", "
<< GLEnums::GetStringEnum(modeAlpha) << ")");
+ DCHECK(g_driver_gl.debug_fn.glBlendEquationSeparateFn != nullptr);
g_driver_gl.debug_fn.glBlendEquationSeparateFn(modeRGB, modeAlpha);
}
@@ -2214,6 +2237,7 @@ static void GL_BINDING_CALL Debug_glBlendFunc(GLenum sfactor, GLenum dfactor) {
GL_SERVICE_LOG("glBlendFunc"
<< "(" << GLEnums::GetStringEnum(sfactor) << ", "
<< GLEnums::GetStringEnum(dfactor) << ")");
+ DCHECK(g_driver_gl.debug_fn.glBlendFuncFn != nullptr);
g_driver_gl.debug_fn.glBlendFuncFn(sfactor, dfactor);
}
@@ -2226,6 +2250,7 @@ static void GL_BINDING_CALL Debug_glBlendFuncSeparate(GLenum srcRGB,
<< GLEnums::GetStringEnum(dstRGB) << ", "
<< GLEnums::GetStringEnum(srcAlpha) << ", "
<< GLEnums::GetStringEnum(dstAlpha) << ")");
+ DCHECK(g_driver_gl.debug_fn.glBlendFuncSeparateFn != nullptr);
g_driver_gl.debug_fn.glBlendFuncSeparateFn(srcRGB, dstRGB, srcAlpha,
dstAlpha);
}
@@ -2245,6 +2270,7 @@ static void GL_BINDING_CALL Debug_glBlitFramebuffer(GLint srcX0,
<< srcY1 << ", " << dstX0 << ", " << dstY0 << ", " << dstX1
<< ", " << dstY1 << ", " << mask << ", "
<< GLEnums::GetStringEnum(filter) << ")");
+ DCHECK(g_driver_gl.debug_fn.glBlitFramebufferFn != nullptr);
g_driver_gl.debug_fn.glBlitFramebufferFn(srcX0, srcY0, srcX1, srcY1, dstX0,
dstY0, dstX1, dstY1, mask, filter);
}
@@ -2264,6 +2290,7 @@ static void GL_BINDING_CALL Debug_glBlitFramebufferANGLE(GLint srcX0,
<< srcY1 << ", " << dstX0 << ", " << dstY0 << ", " << dstX1
<< ", " << dstY1 << ", " << mask << ", "
<< GLEnums::GetStringEnum(filter) << ")");
+ DCHECK(g_driver_gl.debug_fn.glBlitFramebufferANGLEFn != nullptr);
g_driver_gl.debug_fn.glBlitFramebufferANGLEFn(
srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
}
@@ -2283,6 +2310,7 @@ static void GL_BINDING_CALL Debug_glBlitFramebufferEXT(GLint srcX0,
<< srcY1 << ", " << dstX0 << ", " << dstY0 << ", " << dstX1
<< ", " << dstY1 << ", " << mask << ", "
<< GLEnums::GetStringEnum(filter) << ")");
+ DCHECK(g_driver_gl.debug_fn.glBlitFramebufferEXTFn != nullptr);
g_driver_gl.debug_fn.glBlitFramebufferEXTFn(
srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
}
@@ -2295,6 +2323,7 @@ static void GL_BINDING_CALL Debug_glBufferData(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", " << size
<< ", " << static_cast<const void*>(data) << ", "
<< GLEnums::GetStringEnum(usage) << ")");
+ DCHECK(g_driver_gl.debug_fn.glBufferDataFn != nullptr);
g_driver_gl.debug_fn.glBufferDataFn(target, size, data, usage);
}
@@ -2306,12 +2335,14 @@ static void GL_BINDING_CALL Debug_glBufferSubData(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", " << offset
<< ", " << size << ", " << static_cast<const void*>(data)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glBufferSubDataFn != nullptr);
g_driver_gl.debug_fn.glBufferSubDataFn(target, offset, size, data);
}
static GLenum GL_BINDING_CALL Debug_glCheckFramebufferStatusEXT(GLenum target) {
GL_SERVICE_LOG("glCheckFramebufferStatusEXT"
<< "(" << GLEnums::GetStringEnum(target) << ")");
+ DCHECK(g_driver_gl.debug_fn.glCheckFramebufferStatusEXTFn != nullptr);
GLenum result = g_driver_gl.debug_fn.glCheckFramebufferStatusEXTFn(target);
GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringEnum(result));
@@ -2322,6 +2353,7 @@ static GLenum GL_BINDING_CALL Debug_glCheckFramebufferStatusEXT(GLenum target) {
static void GL_BINDING_CALL Debug_glClear(GLbitfield mask) {
GL_SERVICE_LOG("glClear"
<< "(" << mask << ")");
+ DCHECK(g_driver_gl.debug_fn.glClearFn != nullptr);
g_driver_gl.debug_fn.glClearFn(mask);
}
@@ -2332,6 +2364,7 @@ static void GL_BINDING_CALL Debug_glClearBufferfi(GLenum buffer,
GL_SERVICE_LOG("glClearBufferfi"
<< "(" << GLEnums::GetStringEnum(buffer) << ", " << drawbuffer
<< ", " << depth << ", " << stencil << ")");
+ DCHECK(g_driver_gl.debug_fn.glClearBufferfiFn != nullptr);
g_driver_gl.debug_fn.glClearBufferfiFn(buffer, drawbuffer, depth, stencil);
}
@@ -2341,6 +2374,7 @@ static void GL_BINDING_CALL Debug_glClearBufferfv(GLenum buffer,
GL_SERVICE_LOG("glClearBufferfv"
<< "(" << GLEnums::GetStringEnum(buffer) << ", " << drawbuffer
<< ", " << static_cast<const void*>(value) << ")");
+ DCHECK(g_driver_gl.debug_fn.glClearBufferfvFn != nullptr);
g_driver_gl.debug_fn.glClearBufferfvFn(buffer, drawbuffer, value);
}
@@ -2350,6 +2384,7 @@ static void GL_BINDING_CALL Debug_glClearBufferiv(GLenum buffer,
GL_SERVICE_LOG("glClearBufferiv"
<< "(" << GLEnums::GetStringEnum(buffer) << ", " << drawbuffer
<< ", " << static_cast<const void*>(value) << ")");
+ DCHECK(g_driver_gl.debug_fn.glClearBufferivFn != nullptr);
g_driver_gl.debug_fn.glClearBufferivFn(buffer, drawbuffer, value);
}
@@ -2359,6 +2394,7 @@ static void GL_BINDING_CALL Debug_glClearBufferuiv(GLenum buffer,
GL_SERVICE_LOG("glClearBufferuiv"
<< "(" << GLEnums::GetStringEnum(buffer) << ", " << drawbuffer
<< ", " << static_cast<const void*>(value) << ")");
+ DCHECK(g_driver_gl.debug_fn.glClearBufferuivFn != nullptr);
g_driver_gl.debug_fn.glClearBufferuivFn(buffer, drawbuffer, value);
}
@@ -2369,24 +2405,28 @@ static void GL_BINDING_CALL Debug_glClearColor(GLclampf red,
GL_SERVICE_LOG("glClearColor"
<< "(" << red << ", " << green << ", " << blue << ", " << alpha
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glClearColorFn != nullptr);
g_driver_gl.debug_fn.glClearColorFn(red, green, blue, alpha);
}
static void GL_BINDING_CALL Debug_glClearDepth(GLclampd depth) {
GL_SERVICE_LOG("glClearDepth"
<< "(" << depth << ")");
+ DCHECK(g_driver_gl.debug_fn.glClearDepthFn != nullptr);
g_driver_gl.debug_fn.glClearDepthFn(depth);
}
static void GL_BINDING_CALL Debug_glClearDepthf(GLclampf depth) {
GL_SERVICE_LOG("glClearDepthf"
<< "(" << depth << ")");
+ DCHECK(g_driver_gl.debug_fn.glClearDepthfFn != nullptr);
g_driver_gl.debug_fn.glClearDepthfFn(depth);
}
static void GL_BINDING_CALL Debug_glClearStencil(GLint s) {
GL_SERVICE_LOG("glClearStencil"
<< "(" << s << ")");
+ DCHECK(g_driver_gl.debug_fn.glClearStencilFn != nullptr);
g_driver_gl.debug_fn.glClearStencilFn(s);
}
@@ -2395,6 +2435,7 @@ static GLenum GL_BINDING_CALL Debug_glClientWaitSync(GLsync sync,
GLuint64 timeout) {
GL_SERVICE_LOG("glClientWaitSync"
<< "(" << sync << ", " << flags << ", " << timeout << ")");
+ DCHECK(g_driver_gl.debug_fn.glClientWaitSyncFn != nullptr);
GLenum result = g_driver_gl.debug_fn.glClientWaitSyncFn(sync, flags, timeout);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -2409,12 +2450,14 @@ static void GL_BINDING_CALL Debug_glColorMask(GLboolean red,
<< GLEnums::GetStringBool(green) << ", "
<< GLEnums::GetStringBool(blue) << ", "
<< GLEnums::GetStringBool(alpha) << ")");
+ DCHECK(g_driver_gl.debug_fn.glColorMaskFn != nullptr);
g_driver_gl.debug_fn.glColorMaskFn(red, green, blue, alpha);
}
static void GL_BINDING_CALL Debug_glCompileShader(GLuint shader) {
GL_SERVICE_LOG("glCompileShader"
<< "(" << shader << ")");
+ DCHECK(g_driver_gl.debug_fn.glCompileShaderFn != nullptr);
g_driver_gl.debug_fn.glCompileShaderFn(shader);
}
@@ -2431,6 +2474,7 @@ static void GL_BINDING_CALL Debug_glCompressedTexImage2D(GLenum target,
<< ", " << GLEnums::GetStringEnum(internalformat) << ", "
<< width << ", " << height << ", " << border << ", "
<< imageSize << ", " << static_cast<const void*>(data) << ")");
+ DCHECK(g_driver_gl.debug_fn.glCompressedTexImage2DFn != nullptr);
g_driver_gl.debug_fn.glCompressedTexImage2DFn(
target, level, internalformat, width, height, border, imageSize, data);
}
@@ -2450,6 +2494,7 @@ static void GL_BINDING_CALL Debug_glCompressedTexImage3D(GLenum target,
<< width << ", " << height << ", " << depth << ", " << border
<< ", " << imageSize << ", " << static_cast<const void*>(data)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glCompressedTexImage3DFn != nullptr);
g_driver_gl.debug_fn.glCompressedTexImage3DFn(target, level, internalformat,
width, height, depth, border,
imageSize, data);
@@ -2469,6 +2514,7 @@ static void GL_BINDING_CALL Debug_glCompressedTexSubImage2D(GLenum target,
<< ", " << xoffset << ", " << yoffset << ", " << width << ", "
<< height << ", " << GLEnums::GetStringEnum(format) << ", "
<< imageSize << ", " << static_cast<const void*>(data) << ")");
+ DCHECK(g_driver_gl.debug_fn.glCompressedTexSubImage2DFn != nullptr);
g_driver_gl.debug_fn.glCompressedTexSubImage2DFn(
target, level, xoffset, yoffset, width, height, format, imageSize, data);
}
@@ -2490,6 +2536,7 @@ static void GL_BINDING_CALL Debug_glCompressedTexSubImage3D(GLenum target,
<< ", " << width << ", " << height << ", " << depth << ", "
<< GLEnums::GetStringEnum(format) << ", " << imageSize << ", "
<< static_cast<const void*>(data) << ")");
+ DCHECK(g_driver_gl.debug_fn.glCompressedTexSubImage3DFn != nullptr);
g_driver_gl.debug_fn.glCompressedTexSubImage3DFn(
target, level, xoffset, yoffset, zoffset, width, height, depth, format,
imageSize, data);
@@ -2504,6 +2551,7 @@ static void GL_BINDING_CALL Debug_glCopyBufferSubData(GLenum readTarget,
<< "(" << GLEnums::GetStringEnum(readTarget) << ", "
<< GLEnums::GetStringEnum(writeTarget) << ", " << readOffset
<< ", " << writeOffset << ", " << size << ")");
+ DCHECK(g_driver_gl.debug_fn.glCopyBufferSubDataFn != nullptr);
g_driver_gl.debug_fn.glCopyBufferSubDataFn(readTarget, writeTarget,
readOffset, writeOffset, size);
}
@@ -2521,6 +2569,7 @@ static void GL_BINDING_CALL Debug_glCopyTexImage2D(GLenum target,
<< ", " << GLEnums::GetStringEnum(internalformat) << ", " << x
<< ", " << y << ", " << width << ", " << height << ", "
<< border << ")");
+ DCHECK(g_driver_gl.debug_fn.glCopyTexImage2DFn != nullptr);
g_driver_gl.debug_fn.glCopyTexImage2DFn(target, level, internalformat, x, y,
width, height, border);
}
@@ -2537,6 +2586,7 @@ static void GL_BINDING_CALL Debug_glCopyTexSubImage2D(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << xoffset << ", " << yoffset << ", " << x << ", " << y
<< ", " << width << ", " << height << ")");
+ DCHECK(g_driver_gl.debug_fn.glCopyTexSubImage2DFn != nullptr);
g_driver_gl.debug_fn.glCopyTexSubImage2DFn(target, level, xoffset, yoffset, x,
y, width, height);
}
@@ -2555,6 +2605,7 @@ static void GL_BINDING_CALL Debug_glCopyTexSubImage3D(GLenum target,
<< ", " << xoffset << ", " << yoffset << ", " << zoffset
<< ", " << x << ", " << y << ", " << width << ", " << height
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glCopyTexSubImage3DFn != nullptr);
g_driver_gl.debug_fn.glCopyTexSubImage3DFn(target, level, xoffset, yoffset,
zoffset, x, y, width, height);
}
@@ -2562,6 +2613,7 @@ static void GL_BINDING_CALL Debug_glCopyTexSubImage3D(GLenum target,
static void GL_BINDING_CALL Debug_glCoverageModulationNV(GLenum components) {
GL_SERVICE_LOG("glCoverageModulationNV"
<< "(" << GLEnums::GetStringEnum(components) << ")");
+ DCHECK(g_driver_gl.debug_fn.glCoverageModulationNVFn != nullptr);
g_driver_gl.debug_fn.glCoverageModulationNVFn(components);
}
@@ -2580,6 +2632,7 @@ Debug_glCoverFillPathInstancedNV(GLsizei numPaths,
<< GLEnums::GetStringEnum(coverMode) << ", "
<< GLEnums::GetStringEnum(transformType) << ", "
<< static_cast<const void*>(transformValues) << ")");
+ DCHECK(g_driver_gl.debug_fn.glCoverFillPathInstancedNVFn != nullptr);
g_driver_gl.debug_fn.glCoverFillPathInstancedNVFn(
numPaths, pathNameType, paths, pathBase, coverMode, transformType,
transformValues);
@@ -2590,6 +2643,7 @@ static void GL_BINDING_CALL Debug_glCoverFillPathNV(GLuint path,
GL_SERVICE_LOG("glCoverFillPathNV"
<< "(" << path << ", " << GLEnums::GetStringEnum(coverMode)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glCoverFillPathNVFn != nullptr);
g_driver_gl.debug_fn.glCoverFillPathNVFn(path, coverMode);
}
@@ -2608,6 +2662,7 @@ Debug_glCoverStrokePathInstancedNV(GLsizei numPaths,
<< GLEnums::GetStringEnum(coverMode) << ", "
<< GLEnums::GetStringEnum(transformType) << ", "
<< static_cast<const void*>(transformValues) << ")");
+ DCHECK(g_driver_gl.debug_fn.glCoverStrokePathInstancedNVFn != nullptr);
g_driver_gl.debug_fn.glCoverStrokePathInstancedNVFn(
numPaths, pathNameType, paths, pathBase, coverMode, transformType,
transformValues);
@@ -2618,6 +2673,7 @@ static void GL_BINDING_CALL Debug_glCoverStrokePathNV(GLuint name,
GL_SERVICE_LOG("glCoverStrokePathNV"
<< "(" << name << ", " << GLEnums::GetStringEnum(coverMode)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glCoverStrokePathNVFn != nullptr);
g_driver_gl.debug_fn.glCoverStrokePathNVFn(name, coverMode);
}
@@ -2625,6 +2681,7 @@ static GLuint GL_BINDING_CALL Debug_glCreateProgram(void) {
GL_SERVICE_LOG("glCreateProgram"
<< "("
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glCreateProgramFn != nullptr);
GLuint result = g_driver_gl.debug_fn.glCreateProgramFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -2633,6 +2690,7 @@ static GLuint GL_BINDING_CALL Debug_glCreateProgram(void) {
static GLuint GL_BINDING_CALL Debug_glCreateShader(GLenum type) {
GL_SERVICE_LOG("glCreateShader"
<< "(" << GLEnums::GetStringEnum(type) << ")");
+ DCHECK(g_driver_gl.debug_fn.glCreateShaderFn != nullptr);
GLuint result = g_driver_gl.debug_fn.glCreateShaderFn(type);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -2641,6 +2699,7 @@ static GLuint GL_BINDING_CALL Debug_glCreateShader(GLenum type) {
static void GL_BINDING_CALL Debug_glCullFace(GLenum mode) {
GL_SERVICE_LOG("glCullFace"
<< "(" << GLEnums::GetStringEnum(mode) << ")");
+ DCHECK(g_driver_gl.debug_fn.glCullFaceFn != nullptr);
g_driver_gl.debug_fn.glCullFaceFn(mode);
}
@@ -2649,6 +2708,7 @@ static void GL_BINDING_CALL Debug_glDeleteBuffersARB(GLsizei n,
GL_SERVICE_LOG("glDeleteBuffersARB"
<< "(" << n << ", " << static_cast<const void*>(buffers)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glDeleteBuffersARBFn != nullptr);
g_driver_gl.debug_fn.glDeleteBuffersARBFn(n, buffers);
}
@@ -2657,6 +2717,7 @@ static void GL_BINDING_CALL Debug_glDeleteFencesAPPLE(GLsizei n,
GL_SERVICE_LOG("glDeleteFencesAPPLE"
<< "(" << n << ", " << static_cast<const void*>(fences)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glDeleteFencesAPPLEFn != nullptr);
g_driver_gl.debug_fn.glDeleteFencesAPPLEFn(n, fences);
}
@@ -2665,6 +2726,7 @@ static void GL_BINDING_CALL Debug_glDeleteFencesNV(GLsizei n,
GL_SERVICE_LOG("glDeleteFencesNV"
<< "(" << n << ", " << static_cast<const void*>(fences)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glDeleteFencesNVFn != nullptr);
g_driver_gl.debug_fn.glDeleteFencesNVFn(n, fences);
}
@@ -2673,18 +2735,21 @@ Debug_glDeleteFramebuffersEXT(GLsizei n, const GLuint* framebuffers) {
GL_SERVICE_LOG("glDeleteFramebuffersEXT"
<< "(" << n << ", " << static_cast<const void*>(framebuffers)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glDeleteFramebuffersEXTFn != nullptr);
g_driver_gl.debug_fn.glDeleteFramebuffersEXTFn(n, framebuffers);
}
static void GL_BINDING_CALL Debug_glDeletePathsNV(GLuint path, GLsizei range) {
GL_SERVICE_LOG("glDeletePathsNV"
<< "(" << path << ", " << range << ")");
+ DCHECK(g_driver_gl.debug_fn.glDeletePathsNVFn != nullptr);
g_driver_gl.debug_fn.glDeletePathsNVFn(path, range);
}
static void GL_BINDING_CALL Debug_glDeleteProgram(GLuint program) {
GL_SERVICE_LOG("glDeleteProgram"
<< "(" << program << ")");
+ DCHECK(g_driver_gl.debug_fn.glDeleteProgramFn != nullptr);
g_driver_gl.debug_fn.glDeleteProgramFn(program);
}
@@ -2692,6 +2757,7 @@ static void GL_BINDING_CALL Debug_glDeleteQueries(GLsizei n,
const GLuint* ids) {
GL_SERVICE_LOG("glDeleteQueries"
<< "(" << n << ", " << static_cast<const void*>(ids) << ")");
+ DCHECK(g_driver_gl.debug_fn.glDeleteQueriesFn != nullptr);
g_driver_gl.debug_fn.glDeleteQueriesFn(n, ids);
}
@@ -2700,6 +2766,7 @@ Debug_glDeleteRenderbuffersEXT(GLsizei n, const GLuint* renderbuffers) {
GL_SERVICE_LOG("glDeleteRenderbuffersEXT"
<< "(" << n << ", " << static_cast<const void*>(renderbuffers)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glDeleteRenderbuffersEXTFn != nullptr);
g_driver_gl.debug_fn.glDeleteRenderbuffersEXTFn(n, renderbuffers);
}
@@ -2708,18 +2775,21 @@ static void GL_BINDING_CALL Debug_glDeleteSamplers(GLsizei n,
GL_SERVICE_LOG("glDeleteSamplers"
<< "(" << n << ", " << static_cast<const void*>(samplers)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glDeleteSamplersFn != nullptr);
g_driver_gl.debug_fn.glDeleteSamplersFn(n, samplers);
}
static void GL_BINDING_CALL Debug_glDeleteShader(GLuint shader) {
GL_SERVICE_LOG("glDeleteShader"
<< "(" << shader << ")");
+ DCHECK(g_driver_gl.debug_fn.glDeleteShaderFn != nullptr);
g_driver_gl.debug_fn.glDeleteShaderFn(shader);
}
static void GL_BINDING_CALL Debug_glDeleteSync(GLsync sync) {
GL_SERVICE_LOG("glDeleteSync"
<< "(" << sync << ")");
+ DCHECK(g_driver_gl.debug_fn.glDeleteSyncFn != nullptr);
g_driver_gl.debug_fn.glDeleteSyncFn(sync);
}
@@ -2728,6 +2798,7 @@ static void GL_BINDING_CALL Debug_glDeleteTextures(GLsizei n,
GL_SERVICE_LOG("glDeleteTextures"
<< "(" << n << ", " << static_cast<const void*>(textures)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glDeleteTexturesFn != nullptr);
g_driver_gl.debug_fn.glDeleteTexturesFn(n, textures);
}
@@ -2735,6 +2806,7 @@ static void GL_BINDING_CALL
Debug_glDeleteTransformFeedbacks(GLsizei n, const GLuint* ids) {
GL_SERVICE_LOG("glDeleteTransformFeedbacks"
<< "(" << n << ", " << static_cast<const void*>(ids) << ")");
+ DCHECK(g_driver_gl.debug_fn.glDeleteTransformFeedbacksFn != nullptr);
g_driver_gl.debug_fn.glDeleteTransformFeedbacksFn(n, ids);
}
@@ -2743,30 +2815,35 @@ Debug_glDeleteVertexArraysOES(GLsizei n, const GLuint* arrays) {
GL_SERVICE_LOG("glDeleteVertexArraysOES"
<< "(" << n << ", " << static_cast<const void*>(arrays)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glDeleteVertexArraysOESFn != nullptr);
g_driver_gl.debug_fn.glDeleteVertexArraysOESFn(n, arrays);
}
static void GL_BINDING_CALL Debug_glDepthFunc(GLenum func) {
GL_SERVICE_LOG("glDepthFunc"
<< "(" << GLEnums::GetStringEnum(func) << ")");
+ DCHECK(g_driver_gl.debug_fn.glDepthFuncFn != nullptr);
g_driver_gl.debug_fn.glDepthFuncFn(func);
}
static void GL_BINDING_CALL Debug_glDepthMask(GLboolean flag) {
GL_SERVICE_LOG("glDepthMask"
<< "(" << GLEnums::GetStringBool(flag) << ")");
+ DCHECK(g_driver_gl.debug_fn.glDepthMaskFn != nullptr);
g_driver_gl.debug_fn.glDepthMaskFn(flag);
}
static void GL_BINDING_CALL Debug_glDepthRange(GLclampd zNear, GLclampd zFar) {
GL_SERVICE_LOG("glDepthRange"
<< "(" << zNear << ", " << zFar << ")");
+ DCHECK(g_driver_gl.debug_fn.glDepthRangeFn != nullptr);
g_driver_gl.debug_fn.glDepthRangeFn(zNear, zFar);
}
static void GL_BINDING_CALL Debug_glDepthRangef(GLclampf zNear, GLclampf zFar) {
GL_SERVICE_LOG("glDepthRangef"
<< "(" << zNear << ", " << zFar << ")");
+ DCHECK(g_driver_gl.debug_fn.glDepthRangefFn != nullptr);
g_driver_gl.debug_fn.glDepthRangefFn(zNear, zFar);
}
@@ -2774,18 +2851,21 @@ static void GL_BINDING_CALL Debug_glDetachShader(GLuint program,
GLuint shader) {
GL_SERVICE_LOG("glDetachShader"
<< "(" << program << ", " << shader << ")");
+ DCHECK(g_driver_gl.debug_fn.glDetachShaderFn != nullptr);
g_driver_gl.debug_fn.glDetachShaderFn(program, shader);
}
static void GL_BINDING_CALL Debug_glDisable(GLenum cap) {
GL_SERVICE_LOG("glDisable"
<< "(" << GLEnums::GetStringEnum(cap) << ")");
+ DCHECK(g_driver_gl.debug_fn.glDisableFn != nullptr);
g_driver_gl.debug_fn.glDisableFn(cap);
}
static void GL_BINDING_CALL Debug_glDisableVertexAttribArray(GLuint index) {
GL_SERVICE_LOG("glDisableVertexAttribArray"
<< "(" << index << ")");
+ DCHECK(g_driver_gl.debug_fn.glDisableVertexAttribArrayFn != nullptr);
g_driver_gl.debug_fn.glDisableVertexAttribArrayFn(index);
}
@@ -2797,6 +2877,7 @@ Debug_glDiscardFramebufferEXT(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< numAttachments << ", "
<< static_cast<const void*>(attachments) << ")");
+ DCHECK(g_driver_gl.debug_fn.glDiscardFramebufferEXTFn != nullptr);
g_driver_gl.debug_fn.glDiscardFramebufferEXTFn(target, numAttachments,
attachments);
}
@@ -2807,6 +2888,7 @@ static void GL_BINDING_CALL Debug_glDrawArrays(GLenum mode,
GL_SERVICE_LOG("glDrawArrays"
<< "(" << GLEnums::GetStringEnum(mode) << ", " << first << ", "
<< count << ")");
+ DCHECK(g_driver_gl.debug_fn.glDrawArraysFn != nullptr);
g_driver_gl.debug_fn.glDrawArraysFn(mode, first, count);
}
@@ -2818,6 +2900,7 @@ Debug_glDrawArraysInstancedANGLE(GLenum mode,
GL_SERVICE_LOG("glDrawArraysInstancedANGLE"
<< "(" << GLEnums::GetStringEnum(mode) << ", " << first << ", "
<< count << ", " << primcount << ")");
+ DCHECK(g_driver_gl.debug_fn.glDrawArraysInstancedANGLEFn != nullptr);
g_driver_gl.debug_fn.glDrawArraysInstancedANGLEFn(mode, first, count,
primcount);
}
@@ -2825,6 +2908,7 @@ Debug_glDrawArraysInstancedANGLE(GLenum mode,
static void GL_BINDING_CALL Debug_glDrawBuffer(GLenum mode) {
GL_SERVICE_LOG("glDrawBuffer"
<< "(" << GLEnums::GetStringEnum(mode) << ")");
+ DCHECK(g_driver_gl.debug_fn.glDrawBufferFn != nullptr);
g_driver_gl.debug_fn.glDrawBufferFn(mode);
}
@@ -2832,6 +2916,7 @@ static void GL_BINDING_CALL Debug_glDrawBuffersARB(GLsizei n,
const GLenum* bufs) {
GL_SERVICE_LOG("glDrawBuffersARB"
<< "(" << n << ", " << static_cast<const void*>(bufs) << ")");
+ DCHECK(g_driver_gl.debug_fn.glDrawBuffersARBFn != nullptr);
g_driver_gl.debug_fn.glDrawBuffersARBFn(n, bufs);
}
@@ -2843,6 +2928,7 @@ static void GL_BINDING_CALL Debug_glDrawElements(GLenum mode,
<< "(" << GLEnums::GetStringEnum(mode) << ", " << count << ", "
<< GLEnums::GetStringEnum(type) << ", "
<< static_cast<const void*>(indices) << ")");
+ DCHECK(g_driver_gl.debug_fn.glDrawElementsFn != nullptr);
g_driver_gl.debug_fn.glDrawElementsFn(mode, count, type, indices);
}
@@ -2857,6 +2943,7 @@ Debug_glDrawElementsInstancedANGLE(GLenum mode,
<< GLEnums::GetStringEnum(type) << ", "
<< static_cast<const void*>(indices) << ", " << primcount
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glDrawElementsInstancedANGLEFn != nullptr);
g_driver_gl.debug_fn.glDrawElementsInstancedANGLEFn(mode, count, type,
indices, primcount);
}
@@ -2871,6 +2958,7 @@ static void GL_BINDING_CALL Debug_glDrawRangeElements(GLenum mode,
<< "(" << GLEnums::GetStringEnum(mode) << ", " << start << ", "
<< end << ", " << count << ", " << GLEnums::GetStringEnum(type)
<< ", " << static_cast<const void*>(indices) << ")");
+ DCHECK(g_driver_gl.debug_fn.glDrawRangeElementsFn != nullptr);
g_driver_gl.debug_fn.glDrawRangeElementsFn(mode, start, end, count, type,
indices);
}
@@ -2881,6 +2969,8 @@ Debug_glEGLImageTargetRenderbufferStorageOES(GLenum target,
GL_SERVICE_LOG("glEGLImageTargetRenderbufferStorageOES"
<< "(" << GLEnums::GetStringEnum(target) << ", " << image
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glEGLImageTargetRenderbufferStorageOESFn !=
+ nullptr);
g_driver_gl.debug_fn.glEGLImageTargetRenderbufferStorageOESFn(target, image);
}
@@ -2889,24 +2979,28 @@ Debug_glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image) {
GL_SERVICE_LOG("glEGLImageTargetTexture2DOES"
<< "(" << GLEnums::GetStringEnum(target) << ", " << image
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glEGLImageTargetTexture2DOESFn != nullptr);
g_driver_gl.debug_fn.glEGLImageTargetTexture2DOESFn(target, image);
}
static void GL_BINDING_CALL Debug_glEnable(GLenum cap) {
GL_SERVICE_LOG("glEnable"
<< "(" << GLEnums::GetStringEnum(cap) << ")");
+ DCHECK(g_driver_gl.debug_fn.glEnableFn != nullptr);
g_driver_gl.debug_fn.glEnableFn(cap);
}
static void GL_BINDING_CALL Debug_glEnableVertexAttribArray(GLuint index) {
GL_SERVICE_LOG("glEnableVertexAttribArray"
<< "(" << index << ")");
+ DCHECK(g_driver_gl.debug_fn.glEnableVertexAttribArrayFn != nullptr);
g_driver_gl.debug_fn.glEnableVertexAttribArrayFn(index);
}
static void GL_BINDING_CALL Debug_glEndQuery(GLenum target) {
GL_SERVICE_LOG("glEndQuery"
<< "(" << GLEnums::GetStringEnum(target) << ")");
+ DCHECK(g_driver_gl.debug_fn.glEndQueryFn != nullptr);
g_driver_gl.debug_fn.glEndQueryFn(target);
}
@@ -2914,6 +3008,7 @@ static void GL_BINDING_CALL Debug_glEndTransformFeedback(void) {
GL_SERVICE_LOG("glEndTransformFeedback"
<< "("
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glEndTransformFeedbackFn != nullptr);
g_driver_gl.debug_fn.glEndTransformFeedbackFn();
}
@@ -2922,6 +3017,7 @@ static GLsync GL_BINDING_CALL Debug_glFenceSync(GLenum condition,
GL_SERVICE_LOG("glFenceSync"
<< "(" << GLEnums::GetStringEnum(condition) << ", " << flags
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glFenceSyncFn != nullptr);
GLsync result = g_driver_gl.debug_fn.glFenceSyncFn(condition, flags);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -2931,18 +3027,21 @@ static void GL_BINDING_CALL Debug_glFinish(void) {
GL_SERVICE_LOG("glFinish"
<< "("
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glFinishFn != nullptr);
g_driver_gl.debug_fn.glFinishFn();
}
static void GL_BINDING_CALL Debug_glFinishFenceAPPLE(GLuint fence) {
GL_SERVICE_LOG("glFinishFenceAPPLE"
<< "(" << fence << ")");
+ DCHECK(g_driver_gl.debug_fn.glFinishFenceAPPLEFn != nullptr);
g_driver_gl.debug_fn.glFinishFenceAPPLEFn(fence);
}
static void GL_BINDING_CALL Debug_glFinishFenceNV(GLuint fence) {
GL_SERVICE_LOG("glFinishFenceNV"
<< "(" << fence << ")");
+ DCHECK(g_driver_gl.debug_fn.glFinishFenceNVFn != nullptr);
g_driver_gl.debug_fn.glFinishFenceNVFn(fence);
}
@@ -2950,6 +3049,7 @@ static void GL_BINDING_CALL Debug_glFlush(void) {
GL_SERVICE_LOG("glFlush"
<< "("
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glFlushFn != nullptr);
g_driver_gl.debug_fn.glFlushFn();
}
@@ -2959,6 +3059,7 @@ static void GL_BINDING_CALL Debug_glFlushMappedBufferRange(GLenum target,
GL_SERVICE_LOG("glFlushMappedBufferRange"
<< "(" << GLEnums::GetStringEnum(target) << ", " << offset
<< ", " << length << ")");
+ DCHECK(g_driver_gl.debug_fn.glFlushMappedBufferRangeFn != nullptr);
g_driver_gl.debug_fn.glFlushMappedBufferRangeFn(target, offset, length);
}
@@ -2972,6 +3073,7 @@ Debug_glFramebufferRenderbufferEXT(GLenum target,
<< GLEnums::GetStringEnum(attachment) << ", "
<< GLEnums::GetStringEnum(renderbuffertarget) << ", "
<< renderbuffer << ")");
+ DCHECK(g_driver_gl.debug_fn.glFramebufferRenderbufferEXTFn != nullptr);
g_driver_gl.debug_fn.glFramebufferRenderbufferEXTFn(
target, attachment, renderbuffertarget, renderbuffer);
}
@@ -2986,6 +3088,7 @@ static void GL_BINDING_CALL Debug_glFramebufferTexture2DEXT(GLenum target,
<< GLEnums::GetStringEnum(attachment) << ", "
<< GLEnums::GetStringEnum(textarget) << ", " << texture << ", "
<< level << ")");
+ DCHECK(g_driver_gl.debug_fn.glFramebufferTexture2DEXTFn != nullptr);
g_driver_gl.debug_fn.glFramebufferTexture2DEXTFn(target, attachment,
textarget, texture, level);
}
@@ -3002,6 +3105,8 @@ Debug_glFramebufferTexture2DMultisampleEXT(GLenum target,
<< GLEnums::GetStringEnum(attachment) << ", "
<< GLEnums::GetStringEnum(textarget) << ", " << texture << ", "
<< level << ", " << samples << ")");
+ DCHECK(g_driver_gl.debug_fn.glFramebufferTexture2DMultisampleEXTFn !=
+ nullptr);
g_driver_gl.debug_fn.glFramebufferTexture2DMultisampleEXTFn(
target, attachment, textarget, texture, level, samples);
}
@@ -3018,6 +3123,8 @@ Debug_glFramebufferTexture2DMultisampleIMG(GLenum target,
<< GLEnums::GetStringEnum(attachment) << ", "
<< GLEnums::GetStringEnum(textarget) << ", " << texture << ", "
<< level << ", " << samples << ")");
+ DCHECK(g_driver_gl.debug_fn.glFramebufferTexture2DMultisampleIMGFn !=
+ nullptr);
g_driver_gl.debug_fn.glFramebufferTexture2DMultisampleIMGFn(
target, attachment, textarget, texture, level, samples);
}
@@ -3031,6 +3138,7 @@ static void GL_BINDING_CALL Debug_glFramebufferTextureLayer(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(attachment) << ", " << texture
<< ", " << level << ", " << layer << ")");
+ DCHECK(g_driver_gl.debug_fn.glFramebufferTextureLayerFn != nullptr);
g_driver_gl.debug_fn.glFramebufferTextureLayerFn(target, attachment, texture,
level, layer);
}
@@ -3038,6 +3146,7 @@ static void GL_BINDING_CALL Debug_glFramebufferTextureLayer(GLenum target,
static void GL_BINDING_CALL Debug_glFrontFace(GLenum mode) {
GL_SERVICE_LOG("glFrontFace"
<< "(" << GLEnums::GetStringEnum(mode) << ")");
+ DCHECK(g_driver_gl.debug_fn.glFrontFaceFn != nullptr);
g_driver_gl.debug_fn.glFrontFaceFn(mode);
}
@@ -3045,12 +3154,14 @@ static void GL_BINDING_CALL Debug_glGenBuffersARB(GLsizei n, GLuint* buffers) {
GL_SERVICE_LOG("glGenBuffersARB"
<< "(" << n << ", " << static_cast<const void*>(buffers)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glGenBuffersARBFn != nullptr);
g_driver_gl.debug_fn.glGenBuffersARBFn(n, buffers);
}
static void GL_BINDING_CALL Debug_glGenerateMipmapEXT(GLenum target) {
GL_SERVICE_LOG("glGenerateMipmapEXT"
<< "(" << GLEnums::GetStringEnum(target) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGenerateMipmapEXTFn != nullptr);
g_driver_gl.debug_fn.glGenerateMipmapEXTFn(target);
}
@@ -3058,6 +3169,7 @@ static void GL_BINDING_CALL Debug_glGenFencesAPPLE(GLsizei n, GLuint* fences) {
GL_SERVICE_LOG("glGenFencesAPPLE"
<< "(" << n << ", " << static_cast<const void*>(fences)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glGenFencesAPPLEFn != nullptr);
g_driver_gl.debug_fn.glGenFencesAPPLEFn(n, fences);
}
@@ -3065,6 +3177,7 @@ static void GL_BINDING_CALL Debug_glGenFencesNV(GLsizei n, GLuint* fences) {
GL_SERVICE_LOG("glGenFencesNV"
<< "(" << n << ", " << static_cast<const void*>(fences)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glGenFencesNVFn != nullptr);
g_driver_gl.debug_fn.glGenFencesNVFn(n, fences);
}
@@ -3073,12 +3186,14 @@ static void GL_BINDING_CALL Debug_glGenFramebuffersEXT(GLsizei n,
GL_SERVICE_LOG("glGenFramebuffersEXT"
<< "(" << n << ", " << static_cast<const void*>(framebuffers)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glGenFramebuffersEXTFn != nullptr);
g_driver_gl.debug_fn.glGenFramebuffersEXTFn(n, framebuffers);
}
static GLuint GL_BINDING_CALL Debug_glGenPathsNV(GLsizei range) {
GL_SERVICE_LOG("glGenPathsNV"
<< "(" << range << ")");
+ DCHECK(g_driver_gl.debug_fn.glGenPathsNVFn != nullptr);
GLuint result = g_driver_gl.debug_fn.glGenPathsNVFn(range);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3087,6 +3202,7 @@ static GLuint GL_BINDING_CALL Debug_glGenPathsNV(GLsizei range) {
static void GL_BINDING_CALL Debug_glGenQueries(GLsizei n, GLuint* ids) {
GL_SERVICE_LOG("glGenQueries"
<< "(" << n << ", " << static_cast<const void*>(ids) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGenQueriesFn != nullptr);
g_driver_gl.debug_fn.glGenQueriesFn(n, ids);
}
@@ -3095,6 +3211,7 @@ static void GL_BINDING_CALL Debug_glGenRenderbuffersEXT(GLsizei n,
GL_SERVICE_LOG("glGenRenderbuffersEXT"
<< "(" << n << ", " << static_cast<const void*>(renderbuffers)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glGenRenderbuffersEXTFn != nullptr);
g_driver_gl.debug_fn.glGenRenderbuffersEXTFn(n, renderbuffers);
}
@@ -3102,6 +3219,7 @@ static void GL_BINDING_CALL Debug_glGenSamplers(GLsizei n, GLuint* samplers) {
GL_SERVICE_LOG("glGenSamplers"
<< "(" << n << ", " << static_cast<const void*>(samplers)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glGenSamplersFn != nullptr);
g_driver_gl.debug_fn.glGenSamplersFn(n, samplers);
}
@@ -3109,6 +3227,7 @@ static void GL_BINDING_CALL Debug_glGenTextures(GLsizei n, GLuint* textures) {
GL_SERVICE_LOG("glGenTextures"
<< "(" << n << ", " << static_cast<const void*>(textures)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glGenTexturesFn != nullptr);
g_driver_gl.debug_fn.glGenTexturesFn(n, textures);
}
@@ -3116,6 +3235,7 @@ static void GL_BINDING_CALL Debug_glGenTransformFeedbacks(GLsizei n,
GLuint* ids) {
GL_SERVICE_LOG("glGenTransformFeedbacks"
<< "(" << n << ", " << static_cast<const void*>(ids) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGenTransformFeedbacksFn != nullptr);
g_driver_gl.debug_fn.glGenTransformFeedbacksFn(n, ids);
}
@@ -3124,6 +3244,7 @@ static void GL_BINDING_CALL Debug_glGenVertexArraysOES(GLsizei n,
GL_SERVICE_LOG("glGenVertexArraysOES"
<< "(" << n << ", " << static_cast<const void*>(arrays)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glGenVertexArraysOESFn != nullptr);
g_driver_gl.debug_fn.glGenVertexArraysOESFn(n, arrays);
}
@@ -3140,6 +3261,7 @@ static void GL_BINDING_CALL Debug_glGetActiveAttrib(GLuint program,
<< static_cast<const void*>(size) << ", "
<< static_cast<const void*>(type) << ", "
<< static_cast<const void*>(name) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetActiveAttribFn != nullptr);
g_driver_gl.debug_fn.glGetActiveAttribFn(program, index, bufsize, length,
size, type, name);
}
@@ -3157,6 +3279,7 @@ static void GL_BINDING_CALL Debug_glGetActiveUniform(GLuint program,
<< static_cast<const void*>(size) << ", "
<< static_cast<const void*>(type) << ", "
<< static_cast<const void*>(name) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetActiveUniformFn != nullptr);
g_driver_gl.debug_fn.glGetActiveUniformFn(program, index, bufsize, length,
size, type, name);
}
@@ -3170,6 +3293,7 @@ Debug_glGetActiveUniformBlockiv(GLuint program,
<< "(" << program << ", " << uniformBlockIndex << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetActiveUniformBlockivFn != nullptr);
g_driver_gl.debug_fn.glGetActiveUniformBlockivFn(program, uniformBlockIndex,
pname, params);
}
@@ -3184,6 +3308,7 @@ Debug_glGetActiveUniformBlockName(GLuint program,
<< "(" << program << ", " << uniformBlockIndex << ", "
<< bufSize << ", " << static_cast<const void*>(length) << ", "
<< static_cast<const void*>(uniformBlockName) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetActiveUniformBlockNameFn != nullptr);
g_driver_gl.debug_fn.glGetActiveUniformBlockNameFn(
program, uniformBlockIndex, bufSize, length, uniformBlockName);
}
@@ -3199,6 +3324,7 @@ Debug_glGetActiveUniformsiv(GLuint program,
<< static_cast<const void*>(uniformIndices) << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetActiveUniformsivFn != nullptr);
g_driver_gl.debug_fn.glGetActiveUniformsivFn(program, uniformCount,
uniformIndices, pname, params);
}
@@ -3211,6 +3337,7 @@ static void GL_BINDING_CALL Debug_glGetAttachedShaders(GLuint program,
<< "(" << program << ", " << maxcount << ", "
<< static_cast<const void*>(count) << ", "
<< static_cast<const void*>(shaders) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetAttachedShadersFn != nullptr);
g_driver_gl.debug_fn.glGetAttachedShadersFn(program, maxcount, count,
shaders);
}
@@ -3219,6 +3346,7 @@ static GLint GL_BINDING_CALL Debug_glGetAttribLocation(GLuint program,
const char* name) {
GL_SERVICE_LOG("glGetAttribLocation"
<< "(" << program << ", " << name << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetAttribLocationFn != nullptr);
GLint result = g_driver_gl.debug_fn.glGetAttribLocationFn(program, name);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3229,6 +3357,7 @@ static void GL_BINDING_CALL Debug_glGetBooleanv(GLenum pname,
GL_SERVICE_LOG("glGetBooleanv"
<< "(" << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetBooleanvFn != nullptr);
g_driver_gl.debug_fn.glGetBooleanvFn(pname, params);
}
@@ -3239,6 +3368,7 @@ static void GL_BINDING_CALL Debug_glGetBufferParameteriv(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetBufferParameterivFn != nullptr);
g_driver_gl.debug_fn.glGetBufferParameterivFn(target, pname, params);
}
@@ -3246,6 +3376,7 @@ static GLenum GL_BINDING_CALL Debug_glGetError(void) {
GL_SERVICE_LOG("glGetError"
<< "("
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glGetErrorFn != nullptr);
GLenum result = g_driver_gl.debug_fn.glGetErrorFn();
GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringError(result));
@@ -3259,6 +3390,7 @@ static void GL_BINDING_CALL Debug_glGetFenceivNV(GLuint fence,
GL_SERVICE_LOG("glGetFenceivNV"
<< "(" << fence << ", " << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetFenceivNVFn != nullptr);
g_driver_gl.debug_fn.glGetFenceivNVFn(fence, pname, params);
}
@@ -3266,6 +3398,7 @@ static void GL_BINDING_CALL Debug_glGetFloatv(GLenum pname, GLfloat* params) {
GL_SERVICE_LOG("glGetFloatv"
<< "(" << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetFloatvFn != nullptr);
g_driver_gl.debug_fn.glGetFloatvFn(pname, params);
}
@@ -3273,6 +3406,7 @@ static GLint GL_BINDING_CALL Debug_glGetFragDataIndex(GLuint program,
const char* name) {
GL_SERVICE_LOG("glGetFragDataIndex"
<< "(" << program << ", " << name << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetFragDataIndexFn != nullptr);
GLint result = g_driver_gl.debug_fn.glGetFragDataIndexFn(program, name);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3282,6 +3416,7 @@ static GLint GL_BINDING_CALL Debug_glGetFragDataLocation(GLuint program,
const char* name) {
GL_SERVICE_LOG("glGetFragDataLocation"
<< "(" << program << ", " << name << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetFragDataLocationFn != nullptr);
GLint result = g_driver_gl.debug_fn.glGetFragDataLocationFn(program, name);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3297,6 +3432,8 @@ Debug_glGetFramebufferAttachmentParameterivEXT(GLenum target,
<< GLEnums::GetStringEnum(attachment) << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetFramebufferAttachmentParameterivEXTFn !=
+ nullptr);
g_driver_gl.debug_fn.glGetFramebufferAttachmentParameterivEXTFn(
target, attachment, pname, params);
}
@@ -3305,6 +3442,7 @@ static GLenum GL_BINDING_CALL Debug_glGetGraphicsResetStatusARB(void) {
GL_SERVICE_LOG("glGetGraphicsResetStatusARB"
<< "("
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glGetGraphicsResetStatusARBFn != nullptr);
GLenum result = g_driver_gl.debug_fn.glGetGraphicsResetStatusARBFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3316,6 +3454,7 @@ static void GL_BINDING_CALL Debug_glGetInteger64i_v(GLenum target,
GL_SERVICE_LOG("glGetInteger64i_v"
<< "(" << GLEnums::GetStringEnum(target) << ", " << index
<< ", " << static_cast<const void*>(data) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetInteger64i_vFn != nullptr);
g_driver_gl.debug_fn.glGetInteger64i_vFn(target, index, data);
}
@@ -3324,6 +3463,7 @@ static void GL_BINDING_CALL Debug_glGetInteger64v(GLenum pname,
GL_SERVICE_LOG("glGetInteger64v"
<< "(" << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetInteger64vFn != nullptr);
g_driver_gl.debug_fn.glGetInteger64vFn(pname, params);
}
@@ -3333,6 +3473,7 @@ static void GL_BINDING_CALL Debug_glGetIntegeri_v(GLenum target,
GL_SERVICE_LOG("glGetIntegeri_v"
<< "(" << GLEnums::GetStringEnum(target) << ", " << index
<< ", " << static_cast<const void*>(data) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetIntegeri_vFn != nullptr);
g_driver_gl.debug_fn.glGetIntegeri_vFn(target, index, data);
}
@@ -3340,6 +3481,7 @@ static void GL_BINDING_CALL Debug_glGetIntegerv(GLenum pname, GLint* params) {
GL_SERVICE_LOG("glGetIntegerv"
<< "(" << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetIntegervFn != nullptr);
g_driver_gl.debug_fn.glGetIntegervFn(pname, params);
}
@@ -3353,6 +3495,7 @@ static void GL_BINDING_CALL Debug_glGetInternalformativ(GLenum target,
<< GLEnums::GetStringEnum(internalformat) << ", "
<< GLEnums::GetStringEnum(pname) << ", " << bufSize << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetInternalformativFn != nullptr);
g_driver_gl.debug_fn.glGetInternalformativFn(target, internalformat, pname,
bufSize, params);
}
@@ -3367,6 +3510,7 @@ static void GL_BINDING_CALL Debug_glGetProgramBinary(GLuint program,
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(binaryFormat) << ", "
<< static_cast<const void*>(binary) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetProgramBinaryFn != nullptr);
g_driver_gl.debug_fn.glGetProgramBinaryFn(program, bufSize, length,
binaryFormat, binary);
}
@@ -3379,6 +3523,7 @@ static void GL_BINDING_CALL Debug_glGetProgramInfoLog(GLuint program,
<< "(" << program << ", " << bufsize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(infolog) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetProgramInfoLogFn != nullptr);
g_driver_gl.debug_fn.glGetProgramInfoLogFn(program, bufsize, length, infolog);
}
@@ -3392,6 +3537,7 @@ Debug_glGetProgramInterfaceiv(GLuint program,
<< GLEnums::GetStringEnum(programInterface) << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetProgramInterfaceivFn != nullptr);
g_driver_gl.debug_fn.glGetProgramInterfaceivFn(program, programInterface,
pname, params);
}
@@ -3402,6 +3548,7 @@ static void GL_BINDING_CALL Debug_glGetProgramiv(GLuint program,
GL_SERVICE_LOG("glGetProgramiv"
<< "(" << program << ", " << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetProgramivFn != nullptr);
g_driver_gl.debug_fn.glGetProgramivFn(program, pname, params);
}
@@ -3420,6 +3567,7 @@ Debug_glGetProgramResourceiv(GLuint program,
<< ", " << propCount << ", " << static_cast<const void*>(props)
<< ", " << bufSize << ", " << static_cast<const void*>(length)
<< ", " << static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetProgramResourceivFn != nullptr);
g_driver_gl.debug_fn.glGetProgramResourceivFn(program, programInterface,
index, propCount, props,
bufSize, length, params);
@@ -3433,6 +3581,7 @@ Debug_glGetProgramResourceLocation(GLuint program,
<< "(" << program << ", "
<< GLEnums::GetStringEnum(programInterface) << ", " << name
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glGetProgramResourceLocationFn != nullptr);
GLint result = g_driver_gl.debug_fn.glGetProgramResourceLocationFn(
program, programInterface, name);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -3451,6 +3600,7 @@ Debug_glGetProgramResourceName(GLuint program,
<< GLEnums::GetStringEnum(programInterface) << ", " << index
<< ", " << bufSize << ", " << static_cast<const void*>(length)
<< ", " << static_cast<const void*>(name) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetProgramResourceNameFn != nullptr);
g_driver_gl.debug_fn.glGetProgramResourceNameFn(program, programInterface,
index, bufSize, length, name);
}
@@ -3462,6 +3612,7 @@ static void GL_BINDING_CALL Debug_glGetQueryiv(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetQueryivFn != nullptr);
g_driver_gl.debug_fn.glGetQueryivFn(target, pname, params);
}
@@ -3471,6 +3622,7 @@ static void GL_BINDING_CALL Debug_glGetQueryObjecti64v(GLuint id,
GL_SERVICE_LOG("glGetQueryObjecti64v"
<< "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetQueryObjecti64vFn != nullptr);
g_driver_gl.debug_fn.glGetQueryObjecti64vFn(id, pname, params);
}
@@ -3480,6 +3632,7 @@ static void GL_BINDING_CALL Debug_glGetQueryObjectiv(GLuint id,
GL_SERVICE_LOG("glGetQueryObjectiv"
<< "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetQueryObjectivFn != nullptr);
g_driver_gl.debug_fn.glGetQueryObjectivFn(id, pname, params);
}
@@ -3489,6 +3642,7 @@ static void GL_BINDING_CALL Debug_glGetQueryObjectui64v(GLuint id,
GL_SERVICE_LOG("glGetQueryObjectui64v"
<< "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetQueryObjectui64vFn != nullptr);
g_driver_gl.debug_fn.glGetQueryObjectui64vFn(id, pname, params);
}
@@ -3498,6 +3652,7 @@ static void GL_BINDING_CALL Debug_glGetQueryObjectuiv(GLuint id,
GL_SERVICE_LOG("glGetQueryObjectuiv"
<< "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetQueryObjectuivFn != nullptr);
g_driver_gl.debug_fn.glGetQueryObjectuivFn(id, pname, params);
}
@@ -3509,6 +3664,7 @@ Debug_glGetRenderbufferParameterivEXT(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetRenderbufferParameterivEXTFn != nullptr);
g_driver_gl.debug_fn.glGetRenderbufferParameterivEXTFn(target, pname, params);
}
@@ -3518,6 +3674,7 @@ static void GL_BINDING_CALL Debug_glGetSamplerParameterfv(GLuint sampler,
GL_SERVICE_LOG("glGetSamplerParameterfv"
<< "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetSamplerParameterfvFn != nullptr);
g_driver_gl.debug_fn.glGetSamplerParameterfvFn(sampler, pname, params);
}
@@ -3527,6 +3684,7 @@ static void GL_BINDING_CALL Debug_glGetSamplerParameteriv(GLuint sampler,
GL_SERVICE_LOG("glGetSamplerParameteriv"
<< "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetSamplerParameterivFn != nullptr);
g_driver_gl.debug_fn.glGetSamplerParameterivFn(sampler, pname, params);
}
@@ -3538,6 +3696,7 @@ static void GL_BINDING_CALL Debug_glGetShaderInfoLog(GLuint shader,
<< "(" << shader << ", " << bufsize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(infolog) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetShaderInfoLogFn != nullptr);
g_driver_gl.debug_fn.glGetShaderInfoLogFn(shader, bufsize, length, infolog);
}
@@ -3547,6 +3706,7 @@ static void GL_BINDING_CALL Debug_glGetShaderiv(GLuint shader,
GL_SERVICE_LOG("glGetShaderiv"
<< "(" << shader << ", " << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetShaderivFn != nullptr);
g_driver_gl.debug_fn.glGetShaderivFn(shader, pname, params);
}
@@ -3560,6 +3720,7 @@ Debug_glGetShaderPrecisionFormat(GLenum shadertype,
<< GLEnums::GetStringEnum(precisiontype) << ", "
<< static_cast<const void*>(range) << ", "
<< static_cast<const void*>(precision) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetShaderPrecisionFormatFn != nullptr);
g_driver_gl.debug_fn.glGetShaderPrecisionFormatFn(shadertype, precisiontype,
range, precision);
}
@@ -3572,12 +3733,14 @@ static void GL_BINDING_CALL Debug_glGetShaderSource(GLuint shader,
<< "(" << shader << ", " << bufsize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(source) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetShaderSourceFn != nullptr);
g_driver_gl.debug_fn.glGetShaderSourceFn(shader, bufsize, length, source);
}
static const GLubyte* GL_BINDING_CALL Debug_glGetString(GLenum name) {
GL_SERVICE_LOG("glGetString"
<< "(" << GLEnums::GetStringEnum(name) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetStringFn != nullptr);
const GLubyte* result = g_driver_gl.debug_fn.glGetStringFn(name);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3588,6 +3751,7 @@ static const GLubyte* GL_BINDING_CALL Debug_glGetStringi(GLenum name,
GL_SERVICE_LOG("glGetStringi"
<< "(" << GLEnums::GetStringEnum(name) << ", " << index
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glGetStringiFn != nullptr);
const GLubyte* result = g_driver_gl.debug_fn.glGetStringiFn(name, index);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3602,6 +3766,7 @@ static void GL_BINDING_CALL Debug_glGetSynciv(GLsync sync,
<< "(" << sync << ", " << GLEnums::GetStringEnum(pname) << ", "
<< bufSize << ", " << static_cast<const void*>(length) << ", "
<< static_cast<const void*>(values) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetSyncivFn != nullptr);
g_driver_gl.debug_fn.glGetSyncivFn(sync, pname, bufSize, length, values);
}
@@ -3613,6 +3778,7 @@ static void GL_BINDING_CALL Debug_glGetTexLevelParameterfv(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetTexLevelParameterfvFn != nullptr);
g_driver_gl.debug_fn.glGetTexLevelParameterfvFn(target, level, pname, params);
}
@@ -3624,6 +3790,7 @@ static void GL_BINDING_CALL Debug_glGetTexLevelParameteriv(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetTexLevelParameterivFn != nullptr);
g_driver_gl.debug_fn.glGetTexLevelParameterivFn(target, level, pname, params);
}
@@ -3634,6 +3801,7 @@ static void GL_BINDING_CALL Debug_glGetTexParameterfv(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetTexParameterfvFn != nullptr);
g_driver_gl.debug_fn.glGetTexParameterfvFn(target, pname, params);
}
@@ -3644,6 +3812,7 @@ static void GL_BINDING_CALL Debug_glGetTexParameteriv(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetTexParameterivFn != nullptr);
g_driver_gl.debug_fn.glGetTexParameterivFn(target, pname, params);
}
@@ -3660,6 +3829,7 @@ static void GL_BINDING_CALL Debug_glGetTransformFeedbackVarying(GLuint program,
<< static_cast<const void*>(size) << ", "
<< static_cast<const void*>(type) << ", "
<< static_cast<const void*>(name) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetTransformFeedbackVaryingFn != nullptr);
g_driver_gl.debug_fn.glGetTransformFeedbackVaryingFn(
program, index, bufSize, length, size, type, name);
}
@@ -3673,6 +3843,7 @@ Debug_glGetTranslatedShaderSourceANGLE(GLuint shader,
<< "(" << shader << ", " << bufsize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(source) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetTranslatedShaderSourceANGLEFn != nullptr);
g_driver_gl.debug_fn.glGetTranslatedShaderSourceANGLEFn(shader, bufsize,
length, source);
}
@@ -3681,6 +3852,7 @@ static GLuint GL_BINDING_CALL
Debug_glGetUniformBlockIndex(GLuint program, const char* uniformBlockName) {
GL_SERVICE_LOG("glGetUniformBlockIndex"
<< "(" << program << ", " << uniformBlockName << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetUniformBlockIndexFn != nullptr);
GLuint result =
g_driver_gl.debug_fn.glGetUniformBlockIndexFn(program, uniformBlockName);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -3693,6 +3865,7 @@ static void GL_BINDING_CALL Debug_glGetUniformfv(GLuint program,
GL_SERVICE_LOG("glGetUniformfv"
<< "(" << program << ", " << location << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetUniformfvFn != nullptr);
g_driver_gl.debug_fn.glGetUniformfvFn(program, location, params);
}
@@ -3705,6 +3878,7 @@ Debug_glGetUniformIndices(GLuint program,
<< "(" << program << ", " << uniformCount << ", "
<< static_cast<const void*>(uniformNames) << ", "
<< static_cast<const void*>(uniformIndices) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetUniformIndicesFn != nullptr);
g_driver_gl.debug_fn.glGetUniformIndicesFn(program, uniformCount,
uniformNames, uniformIndices);
}
@@ -3715,6 +3889,7 @@ static void GL_BINDING_CALL Debug_glGetUniformiv(GLuint program,
GL_SERVICE_LOG("glGetUniformiv"
<< "(" << program << ", " << location << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetUniformivFn != nullptr);
g_driver_gl.debug_fn.glGetUniformivFn(program, location, params);
}
@@ -3722,6 +3897,7 @@ static GLint GL_BINDING_CALL Debug_glGetUniformLocation(GLuint program,
const char* name) {
GL_SERVICE_LOG("glGetUniformLocation"
<< "(" << program << ", " << name << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetUniformLocationFn != nullptr);
GLint result = g_driver_gl.debug_fn.glGetUniformLocationFn(program, name);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3733,6 +3909,7 @@ static void GL_BINDING_CALL Debug_glGetUniformuiv(GLuint program,
GL_SERVICE_LOG("glGetUniformuiv"
<< "(" << program << ", " << location << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetUniformuivFn != nullptr);
g_driver_gl.debug_fn.glGetUniformuivFn(program, location, params);
}
@@ -3742,6 +3919,7 @@ static void GL_BINDING_CALL Debug_glGetVertexAttribfv(GLuint index,
GL_SERVICE_LOG("glGetVertexAttribfv"
<< "(" << index << ", " << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetVertexAttribfvFn != nullptr);
g_driver_gl.debug_fn.glGetVertexAttribfvFn(index, pname, params);
}
@@ -3751,6 +3929,7 @@ static void GL_BINDING_CALL Debug_glGetVertexAttribiv(GLuint index,
GL_SERVICE_LOG("glGetVertexAttribiv"
<< "(" << index << ", " << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetVertexAttribivFn != nullptr);
g_driver_gl.debug_fn.glGetVertexAttribivFn(index, pname, params);
}
@@ -3760,6 +3939,7 @@ static void GL_BINDING_CALL Debug_glGetVertexAttribPointerv(GLuint index,
GL_SERVICE_LOG("glGetVertexAttribPointerv"
<< "(" << index << ", " << GLEnums::GetStringEnum(pname)
<< ", " << pointer << ")");
+ DCHECK(g_driver_gl.debug_fn.glGetVertexAttribPointervFn != nullptr);
g_driver_gl.debug_fn.glGetVertexAttribPointervFn(index, pname, pointer);
}
@@ -3767,6 +3947,7 @@ static void GL_BINDING_CALL Debug_glHint(GLenum target, GLenum mode) {
GL_SERVICE_LOG("glHint"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(mode) << ")");
+ DCHECK(g_driver_gl.debug_fn.glHintFn != nullptr);
g_driver_gl.debug_fn.glHintFn(target, mode);
}
@@ -3774,6 +3955,7 @@ static void GL_BINDING_CALL Debug_glInsertEventMarkerEXT(GLsizei length,
const char* marker) {
GL_SERVICE_LOG("glInsertEventMarkerEXT"
<< "(" << length << ", " << marker << ")");
+ DCHECK(g_driver_gl.debug_fn.glInsertEventMarkerEXTFn != nullptr);
g_driver_gl.debug_fn.glInsertEventMarkerEXTFn(length, marker);
}
@@ -3785,6 +3967,7 @@ Debug_glInvalidateFramebuffer(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< numAttachments << ", "
<< static_cast<const void*>(attachments) << ")");
+ DCHECK(g_driver_gl.debug_fn.glInvalidateFramebufferFn != nullptr);
g_driver_gl.debug_fn.glInvalidateFramebufferFn(target, numAttachments,
attachments);
}
@@ -3802,6 +3985,7 @@ Debug_glInvalidateSubFramebuffer(GLenum target,
<< numAttachments << ", "
<< static_cast<const void*>(attachments) << ", " << x << ", "
<< y << ", " << width << ", " << height << ")");
+ DCHECK(g_driver_gl.debug_fn.glInvalidateSubFramebufferFn != nullptr);
g_driver_gl.debug_fn.glInvalidateSubFramebufferFn(
target, numAttachments, attachments, x, y, width, height);
}
@@ -3809,6 +3993,7 @@ Debug_glInvalidateSubFramebuffer(GLenum target,
static GLboolean GL_BINDING_CALL Debug_glIsBuffer(GLuint buffer) {
GL_SERVICE_LOG("glIsBuffer"
<< "(" << buffer << ")");
+ DCHECK(g_driver_gl.debug_fn.glIsBufferFn != nullptr);
GLboolean result = g_driver_gl.debug_fn.glIsBufferFn(buffer);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3817,6 +4002,7 @@ static GLboolean GL_BINDING_CALL Debug_glIsBuffer(GLuint buffer) {
static GLboolean GL_BINDING_CALL Debug_glIsEnabled(GLenum cap) {
GL_SERVICE_LOG("glIsEnabled"
<< "(" << GLEnums::GetStringEnum(cap) << ")");
+ DCHECK(g_driver_gl.debug_fn.glIsEnabledFn != nullptr);
GLboolean result = g_driver_gl.debug_fn.glIsEnabledFn(cap);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3825,6 +4011,7 @@ static GLboolean GL_BINDING_CALL Debug_glIsEnabled(GLenum cap) {
static GLboolean GL_BINDING_CALL Debug_glIsFenceAPPLE(GLuint fence) {
GL_SERVICE_LOG("glIsFenceAPPLE"
<< "(" << fence << ")");
+ DCHECK(g_driver_gl.debug_fn.glIsFenceAPPLEFn != nullptr);
GLboolean result = g_driver_gl.debug_fn.glIsFenceAPPLEFn(fence);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3833,6 +4020,7 @@ static GLboolean GL_BINDING_CALL Debug_glIsFenceAPPLE(GLuint fence) {
static GLboolean GL_BINDING_CALL Debug_glIsFenceNV(GLuint fence) {
GL_SERVICE_LOG("glIsFenceNV"
<< "(" << fence << ")");
+ DCHECK(g_driver_gl.debug_fn.glIsFenceNVFn != nullptr);
GLboolean result = g_driver_gl.debug_fn.glIsFenceNVFn(fence);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3841,6 +4029,7 @@ static GLboolean GL_BINDING_CALL Debug_glIsFenceNV(GLuint fence) {
static GLboolean GL_BINDING_CALL Debug_glIsFramebufferEXT(GLuint framebuffer) {
GL_SERVICE_LOG("glIsFramebufferEXT"
<< "(" << framebuffer << ")");
+ DCHECK(g_driver_gl.debug_fn.glIsFramebufferEXTFn != nullptr);
GLboolean result = g_driver_gl.debug_fn.glIsFramebufferEXTFn(framebuffer);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3849,6 +4038,7 @@ static GLboolean GL_BINDING_CALL Debug_glIsFramebufferEXT(GLuint framebuffer) {
static GLboolean GL_BINDING_CALL Debug_glIsPathNV(GLuint path) {
GL_SERVICE_LOG("glIsPathNV"
<< "(" << path << ")");
+ DCHECK(g_driver_gl.debug_fn.glIsPathNVFn != nullptr);
GLboolean result = g_driver_gl.debug_fn.glIsPathNVFn(path);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3857,6 +4047,7 @@ static GLboolean GL_BINDING_CALL Debug_glIsPathNV(GLuint path) {
static GLboolean GL_BINDING_CALL Debug_glIsProgram(GLuint program) {
GL_SERVICE_LOG("glIsProgram"
<< "(" << program << ")");
+ DCHECK(g_driver_gl.debug_fn.glIsProgramFn != nullptr);
GLboolean result = g_driver_gl.debug_fn.glIsProgramFn(program);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3865,6 +4056,7 @@ static GLboolean GL_BINDING_CALL Debug_glIsProgram(GLuint program) {
static GLboolean GL_BINDING_CALL Debug_glIsQuery(GLuint query) {
GL_SERVICE_LOG("glIsQuery"
<< "(" << query << ")");
+ DCHECK(g_driver_gl.debug_fn.glIsQueryFn != nullptr);
GLboolean result = g_driver_gl.debug_fn.glIsQueryFn(query);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3874,6 +4066,7 @@ static GLboolean GL_BINDING_CALL
Debug_glIsRenderbufferEXT(GLuint renderbuffer) {
GL_SERVICE_LOG("glIsRenderbufferEXT"
<< "(" << renderbuffer << ")");
+ DCHECK(g_driver_gl.debug_fn.glIsRenderbufferEXTFn != nullptr);
GLboolean result = g_driver_gl.debug_fn.glIsRenderbufferEXTFn(renderbuffer);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3882,6 +4075,7 @@ Debug_glIsRenderbufferEXT(GLuint renderbuffer) {
static GLboolean GL_BINDING_CALL Debug_glIsSampler(GLuint sampler) {
GL_SERVICE_LOG("glIsSampler"
<< "(" << sampler << ")");
+ DCHECK(g_driver_gl.debug_fn.glIsSamplerFn != nullptr);
GLboolean result = g_driver_gl.debug_fn.glIsSamplerFn(sampler);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3890,6 +4084,7 @@ static GLboolean GL_BINDING_CALL Debug_glIsSampler(GLuint sampler) {
static GLboolean GL_BINDING_CALL Debug_glIsShader(GLuint shader) {
GL_SERVICE_LOG("glIsShader"
<< "(" << shader << ")");
+ DCHECK(g_driver_gl.debug_fn.glIsShaderFn != nullptr);
GLboolean result = g_driver_gl.debug_fn.glIsShaderFn(shader);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3898,6 +4093,7 @@ static GLboolean GL_BINDING_CALL Debug_glIsShader(GLuint shader) {
static GLboolean GL_BINDING_CALL Debug_glIsSync(GLsync sync) {
GL_SERVICE_LOG("glIsSync"
<< "(" << sync << ")");
+ DCHECK(g_driver_gl.debug_fn.glIsSyncFn != nullptr);
GLboolean result = g_driver_gl.debug_fn.glIsSyncFn(sync);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3906,6 +4102,7 @@ static GLboolean GL_BINDING_CALL Debug_glIsSync(GLsync sync) {
static GLboolean GL_BINDING_CALL Debug_glIsTexture(GLuint texture) {
GL_SERVICE_LOG("glIsTexture"
<< "(" << texture << ")");
+ DCHECK(g_driver_gl.debug_fn.glIsTextureFn != nullptr);
GLboolean result = g_driver_gl.debug_fn.glIsTextureFn(texture);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3914,6 +4111,7 @@ static GLboolean GL_BINDING_CALL Debug_glIsTexture(GLuint texture) {
static GLboolean GL_BINDING_CALL Debug_glIsTransformFeedback(GLuint id) {
GL_SERVICE_LOG("glIsTransformFeedback"
<< "(" << id << ")");
+ DCHECK(g_driver_gl.debug_fn.glIsTransformFeedbackFn != nullptr);
GLboolean result = g_driver_gl.debug_fn.glIsTransformFeedbackFn(id);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3922,6 +4120,7 @@ static GLboolean GL_BINDING_CALL Debug_glIsTransformFeedback(GLuint id) {
static GLboolean GL_BINDING_CALL Debug_glIsVertexArrayOES(GLuint array) {
GL_SERVICE_LOG("glIsVertexArrayOES"
<< "(" << array << ")");
+ DCHECK(g_driver_gl.debug_fn.glIsVertexArrayOESFn != nullptr);
GLboolean result = g_driver_gl.debug_fn.glIsVertexArrayOESFn(array);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3930,12 +4129,14 @@ static GLboolean GL_BINDING_CALL Debug_glIsVertexArrayOES(GLuint array) {
static void GL_BINDING_CALL Debug_glLineWidth(GLfloat width) {
GL_SERVICE_LOG("glLineWidth"
<< "(" << width << ")");
+ DCHECK(g_driver_gl.debug_fn.glLineWidthFn != nullptr);
g_driver_gl.debug_fn.glLineWidthFn(width);
}
static void GL_BINDING_CALL Debug_glLinkProgram(GLuint program) {
GL_SERVICE_LOG("glLinkProgram"
<< "(" << program << ")");
+ DCHECK(g_driver_gl.debug_fn.glLinkProgramFn != nullptr);
g_driver_gl.debug_fn.glLinkProgramFn(program);
}
@@ -3943,6 +4144,7 @@ static void* GL_BINDING_CALL Debug_glMapBuffer(GLenum target, GLenum access) {
GL_SERVICE_LOG("glMapBuffer"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(access) << ")");
+ DCHECK(g_driver_gl.debug_fn.glMapBufferFn != nullptr);
void* result = g_driver_gl.debug_fn.glMapBufferFn(target, access);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -3955,6 +4157,7 @@ static void* GL_BINDING_CALL Debug_glMapBufferRange(GLenum target,
GL_SERVICE_LOG("glMapBufferRange"
<< "(" << GLEnums::GetStringEnum(target) << ", " << offset
<< ", " << length << ", " << access << ")");
+ DCHECK(g_driver_gl.debug_fn.glMapBufferRangeFn != nullptr);
void* result =
g_driver_gl.debug_fn.glMapBufferRangeFn(target, offset, length, access);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -3966,18 +4169,21 @@ static void GL_BINDING_CALL Debug_glMatrixLoadfEXT(GLenum matrixMode,
GL_SERVICE_LOG("glMatrixLoadfEXT"
<< "(" << GLEnums::GetStringEnum(matrixMode) << ", "
<< static_cast<const void*>(m) << ")");
+ DCHECK(g_driver_gl.debug_fn.glMatrixLoadfEXTFn != nullptr);
g_driver_gl.debug_fn.glMatrixLoadfEXTFn(matrixMode, m);
}
static void GL_BINDING_CALL Debug_glMatrixLoadIdentityEXT(GLenum matrixMode) {
GL_SERVICE_LOG("glMatrixLoadIdentityEXT"
<< "(" << GLEnums::GetStringEnum(matrixMode) << ")");
+ DCHECK(g_driver_gl.debug_fn.glMatrixLoadIdentityEXTFn != nullptr);
g_driver_gl.debug_fn.glMatrixLoadIdentityEXTFn(matrixMode);
}
static void GL_BINDING_CALL Debug_glMemoryBarrierEXT(GLbitfield barriers) {
GL_SERVICE_LOG("glMemoryBarrierEXT"
<< "(" << barriers << ")");
+ DCHECK(g_driver_gl.debug_fn.glMemoryBarrierEXTFn != nullptr);
g_driver_gl.debug_fn.glMemoryBarrierEXTFn(barriers);
}
@@ -3992,6 +4198,7 @@ static void GL_BINDING_CALL Debug_glPathCommandsNV(GLuint path,
<< static_cast<const void*>(commands) << ", " << numCoords
<< ", " << GLEnums::GetStringEnum(coordType) << ", "
<< static_cast<const void*>(coords) << ")");
+ DCHECK(g_driver_gl.debug_fn.glPathCommandsNVFn != nullptr);
g_driver_gl.debug_fn.glPathCommandsNVFn(path, numCommands, commands,
numCoords, coordType, coords);
}
@@ -4002,6 +4209,7 @@ static void GL_BINDING_CALL Debug_glPathParameterfNV(GLuint path,
GL_SERVICE_LOG("glPathParameterfNV"
<< "(" << path << ", " << GLEnums::GetStringEnum(pname) << ", "
<< value << ")");
+ DCHECK(g_driver_gl.debug_fn.glPathParameterfNVFn != nullptr);
g_driver_gl.debug_fn.glPathParameterfNVFn(path, pname, value);
}
@@ -4011,6 +4219,7 @@ static void GL_BINDING_CALL Debug_glPathParameteriNV(GLuint path,
GL_SERVICE_LOG("glPathParameteriNV"
<< "(" << path << ", " << GLEnums::GetStringEnum(pname) << ", "
<< value << ")");
+ DCHECK(g_driver_gl.debug_fn.glPathParameteriNVFn != nullptr);
g_driver_gl.debug_fn.glPathParameteriNVFn(path, pname, value);
}
@@ -4020,6 +4229,7 @@ static void GL_BINDING_CALL Debug_glPathStencilFuncNV(GLenum func,
GL_SERVICE_LOG("glPathStencilFuncNV"
<< "(" << GLEnums::GetStringEnum(func) << ", " << ref << ", "
<< mask << ")");
+ DCHECK(g_driver_gl.debug_fn.glPathStencilFuncNVFn != nullptr);
g_driver_gl.debug_fn.glPathStencilFuncNVFn(func, ref, mask);
}
@@ -4027,6 +4237,7 @@ static void GL_BINDING_CALL Debug_glPauseTransformFeedback(void) {
GL_SERVICE_LOG("glPauseTransformFeedback"
<< "("
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glPauseTransformFeedbackFn != nullptr);
g_driver_gl.debug_fn.glPauseTransformFeedbackFn();
}
@@ -4034,6 +4245,7 @@ static void GL_BINDING_CALL Debug_glPixelStorei(GLenum pname, GLint param) {
GL_SERVICE_LOG("glPixelStorei"
<< "(" << GLEnums::GetStringEnum(pname) << ", " << param
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glPixelStoreiFn != nullptr);
g_driver_gl.debug_fn.glPixelStoreiFn(pname, param);
}
@@ -4041,6 +4253,7 @@ static void GL_BINDING_CALL Debug_glPointParameteri(GLenum pname, GLint param) {
GL_SERVICE_LOG("glPointParameteri"
<< "(" << GLEnums::GetStringEnum(pname) << ", " << param
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glPointParameteriFn != nullptr);
g_driver_gl.debug_fn.glPointParameteriFn(pname, param);
}
@@ -4048,6 +4261,7 @@ static void GL_BINDING_CALL Debug_glPolygonOffset(GLfloat factor,
GLfloat units) {
GL_SERVICE_LOG("glPolygonOffset"
<< "(" << factor << ", " << units << ")");
+ DCHECK(g_driver_gl.debug_fn.glPolygonOffsetFn != nullptr);
g_driver_gl.debug_fn.glPolygonOffsetFn(factor, units);
}
@@ -4055,6 +4269,7 @@ static void GL_BINDING_CALL Debug_glPopGroupMarkerEXT(void) {
GL_SERVICE_LOG("glPopGroupMarkerEXT"
<< "("
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glPopGroupMarkerEXTFn != nullptr);
g_driver_gl.debug_fn.glPopGroupMarkerEXTFn();
}
@@ -4066,6 +4281,7 @@ static void GL_BINDING_CALL Debug_glProgramBinary(GLuint program,
<< "(" << program << ", "
<< GLEnums::GetStringEnum(binaryFormat) << ", "
<< static_cast<const void*>(binary) << ", " << length << ")");
+ DCHECK(g_driver_gl.debug_fn.glProgramBinaryFn != nullptr);
g_driver_gl.debug_fn.glProgramBinaryFn(program, binaryFormat, binary, length);
}
@@ -4075,6 +4291,7 @@ static void GL_BINDING_CALL Debug_glProgramParameteri(GLuint program,
GL_SERVICE_LOG("glProgramParameteri"
<< "(" << program << ", " << GLEnums::GetStringEnum(pname)
<< ", " << value << ")");
+ DCHECK(g_driver_gl.debug_fn.glProgramParameteriFn != nullptr);
g_driver_gl.debug_fn.glProgramParameteriFn(program, pname, value);
}
@@ -4088,6 +4305,7 @@ Debug_glProgramPathFragmentInputGenNV(GLuint program,
<< "(" << program << ", " << location << ", "
<< GLEnums::GetStringEnum(genMode) << ", " << components
<< ", " << static_cast<const void*>(coeffs) << ")");
+ DCHECK(g_driver_gl.debug_fn.glProgramPathFragmentInputGenNVFn != nullptr);
g_driver_gl.debug_fn.glProgramPathFragmentInputGenNVFn(
program, location, genMode, components, coeffs);
}
@@ -4096,18 +4314,21 @@ static void GL_BINDING_CALL Debug_glPushGroupMarkerEXT(GLsizei length,
const char* marker) {
GL_SERVICE_LOG("glPushGroupMarkerEXT"
<< "(" << length << ", " << marker << ")");
+ DCHECK(g_driver_gl.debug_fn.glPushGroupMarkerEXTFn != nullptr);
g_driver_gl.debug_fn.glPushGroupMarkerEXTFn(length, marker);
}
static void GL_BINDING_CALL Debug_glQueryCounter(GLuint id, GLenum target) {
GL_SERVICE_LOG("glQueryCounter"
<< "(" << id << ", " << GLEnums::GetStringEnum(target) << ")");
+ DCHECK(g_driver_gl.debug_fn.glQueryCounterFn != nullptr);
g_driver_gl.debug_fn.glQueryCounterFn(id, target);
}
static void GL_BINDING_CALL Debug_glReadBuffer(GLenum src) {
GL_SERVICE_LOG("glReadBuffer"
<< "(" << GLEnums::GetStringEnum(src) << ")");
+ DCHECK(g_driver_gl.debug_fn.glReadBufferFn != nullptr);
g_driver_gl.debug_fn.glReadBufferFn(src);
}
@@ -4123,6 +4344,7 @@ static void GL_BINDING_CALL Debug_glReadPixels(GLint x,
<< ", " << GLEnums::GetStringEnum(format) << ", "
<< GLEnums::GetStringEnum(type) << ", "
<< static_cast<const void*>(pixels) << ")");
+ DCHECK(g_driver_gl.debug_fn.glReadPixelsFn != nullptr);
g_driver_gl.debug_fn.glReadPixelsFn(x, y, width, height, format, type,
pixels);
}
@@ -4131,6 +4353,7 @@ static void GL_BINDING_CALL Debug_glReleaseShaderCompiler(void) {
GL_SERVICE_LOG("glReleaseShaderCompiler"
<< "("
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glReleaseShaderCompilerFn != nullptr);
g_driver_gl.debug_fn.glReleaseShaderCompilerFn();
}
@@ -4143,6 +4366,7 @@ Debug_glRenderbufferStorageEXT(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(internalformat) << ", " << width
<< ", " << height << ")");
+ DCHECK(g_driver_gl.debug_fn.glRenderbufferStorageEXTFn != nullptr);
g_driver_gl.debug_fn.glRenderbufferStorageEXTFn(target, internalformat, width,
height);
}
@@ -4157,6 +4381,7 @@ Debug_glRenderbufferStorageMultisample(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", " << samples
<< ", " << GLEnums::GetStringEnum(internalformat) << ", "
<< width << ", " << height << ")");
+ DCHECK(g_driver_gl.debug_fn.glRenderbufferStorageMultisampleFn != nullptr);
g_driver_gl.debug_fn.glRenderbufferStorageMultisampleFn(
target, samples, internalformat, width, height);
}
@@ -4171,6 +4396,8 @@ Debug_glRenderbufferStorageMultisampleANGLE(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", " << samples
<< ", " << GLEnums::GetStringEnum(internalformat) << ", "
<< width << ", " << height << ")");
+ DCHECK(g_driver_gl.debug_fn.glRenderbufferStorageMultisampleANGLEFn !=
+ nullptr);
g_driver_gl.debug_fn.glRenderbufferStorageMultisampleANGLEFn(
target, samples, internalformat, width, height);
}
@@ -4185,6 +4412,7 @@ Debug_glRenderbufferStorageMultisampleEXT(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", " << samples
<< ", " << GLEnums::GetStringEnum(internalformat) << ", "
<< width << ", " << height << ")");
+ DCHECK(g_driver_gl.debug_fn.glRenderbufferStorageMultisampleEXTFn != nullptr);
g_driver_gl.debug_fn.glRenderbufferStorageMultisampleEXTFn(
target, samples, internalformat, width, height);
}
@@ -4199,6 +4427,7 @@ Debug_glRenderbufferStorageMultisampleIMG(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", " << samples
<< ", " << GLEnums::GetStringEnum(internalformat) << ", "
<< width << ", " << height << ")");
+ DCHECK(g_driver_gl.debug_fn.glRenderbufferStorageMultisampleIMGFn != nullptr);
g_driver_gl.debug_fn.glRenderbufferStorageMultisampleIMGFn(
target, samples, internalformat, width, height);
}
@@ -4207,6 +4436,7 @@ static void GL_BINDING_CALL Debug_glResumeTransformFeedback(void) {
GL_SERVICE_LOG("glResumeTransformFeedback"
<< "("
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glResumeTransformFeedbackFn != nullptr);
g_driver_gl.debug_fn.glResumeTransformFeedbackFn();
}
@@ -4215,6 +4445,7 @@ static void GL_BINDING_CALL Debug_glSampleCoverage(GLclampf value,
GL_SERVICE_LOG("glSampleCoverage"
<< "(" << value << ", " << GLEnums::GetStringBool(invert)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glSampleCoverageFn != nullptr);
g_driver_gl.debug_fn.glSampleCoverageFn(value, invert);
}
@@ -4224,6 +4455,7 @@ static void GL_BINDING_CALL Debug_glSamplerParameterf(GLuint sampler,
GL_SERVICE_LOG("glSamplerParameterf"
<< "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
<< ", " << param << ")");
+ DCHECK(g_driver_gl.debug_fn.glSamplerParameterfFn != nullptr);
g_driver_gl.debug_fn.glSamplerParameterfFn(sampler, pname, param);
}
@@ -4233,6 +4465,7 @@ static void GL_BINDING_CALL Debug_glSamplerParameterfv(GLuint sampler,
GL_SERVICE_LOG("glSamplerParameterfv"
<< "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glSamplerParameterfvFn != nullptr);
g_driver_gl.debug_fn.glSamplerParameterfvFn(sampler, pname, params);
}
@@ -4242,6 +4475,7 @@ static void GL_BINDING_CALL Debug_glSamplerParameteri(GLuint sampler,
GL_SERVICE_LOG("glSamplerParameteri"
<< "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
<< ", " << param << ")");
+ DCHECK(g_driver_gl.debug_fn.glSamplerParameteriFn != nullptr);
g_driver_gl.debug_fn.glSamplerParameteriFn(sampler, pname, param);
}
@@ -4251,6 +4485,7 @@ static void GL_BINDING_CALL Debug_glSamplerParameteriv(GLuint sampler,
GL_SERVICE_LOG("glSamplerParameteriv"
<< "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glSamplerParameterivFn != nullptr);
g_driver_gl.debug_fn.glSamplerParameterivFn(sampler, pname, params);
}
@@ -4261,12 +4496,14 @@ static void GL_BINDING_CALL Debug_glScissor(GLint x,
GL_SERVICE_LOG("glScissor"
<< "(" << x << ", " << y << ", " << width << ", " << height
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glScissorFn != nullptr);
g_driver_gl.debug_fn.glScissorFn(x, y, width, height);
}
static void GL_BINDING_CALL Debug_glSetFenceAPPLE(GLuint fence) {
GL_SERVICE_LOG("glSetFenceAPPLE"
<< "(" << fence << ")");
+ DCHECK(g_driver_gl.debug_fn.glSetFenceAPPLEFn != nullptr);
g_driver_gl.debug_fn.glSetFenceAPPLEFn(fence);
}
@@ -4274,6 +4511,7 @@ static void GL_BINDING_CALL Debug_glSetFenceNV(GLuint fence, GLenum condition) {
GL_SERVICE_LOG("glSetFenceNV"
<< "(" << fence << ", " << GLEnums::GetStringEnum(condition)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glSetFenceNVFn != nullptr);
g_driver_gl.debug_fn.glSetFenceNVFn(fence, condition);
}
@@ -4286,6 +4524,7 @@ static void GL_BINDING_CALL Debug_glShaderBinary(GLsizei n,
<< "(" << n << ", " << static_cast<const void*>(shaders)
<< ", " << GLEnums::GetStringEnum(binaryformat) << ", "
<< static_cast<const void*>(binary) << ", " << length << ")");
+ DCHECK(g_driver_gl.debug_fn.glShaderBinaryFn != nullptr);
g_driver_gl.debug_fn.glShaderBinaryFn(n, shaders, binaryformat, binary,
length);
}
@@ -4298,6 +4537,7 @@ static void GL_BINDING_CALL Debug_glShaderSource(GLuint shader,
<< "(" << shader << ", " << count << ", "
<< static_cast<const void*>(str) << ", "
<< static_cast<const void*>(length) << ")");
+ DCHECK(g_driver_gl.debug_fn.glShaderSourceFn != nullptr);
g_driver_gl.debug_fn.glShaderSourceFn(shader, count, str, length);
GL_SERVICE_LOG_CODE_BLOCK({
@@ -4332,6 +4572,7 @@ Debug_glStencilFillPathInstancedNV(GLsizei numPaths,
<< GLEnums::GetStringEnum(fillMode) << ", " << mask << ", "
<< GLEnums::GetStringEnum(transformType) << ", "
<< static_cast<const void*>(transformValues) << ")");
+ DCHECK(g_driver_gl.debug_fn.glStencilFillPathInstancedNVFn != nullptr);
g_driver_gl.debug_fn.glStencilFillPathInstancedNVFn(
numPaths, pathNameType, paths, pathBase, fillMode, mask, transformType,
transformValues);
@@ -4343,6 +4584,7 @@ static void GL_BINDING_CALL Debug_glStencilFillPathNV(GLuint path,
GL_SERVICE_LOG("glStencilFillPathNV"
<< "(" << path << ", " << GLEnums::GetStringEnum(fillMode)
<< ", " << mask << ")");
+ DCHECK(g_driver_gl.debug_fn.glStencilFillPathNVFn != nullptr);
g_driver_gl.debug_fn.glStencilFillPathNVFn(path, fillMode, mask);
}
@@ -4352,6 +4594,7 @@ static void GL_BINDING_CALL Debug_glStencilFunc(GLenum func,
GL_SERVICE_LOG("glStencilFunc"
<< "(" << GLEnums::GetStringEnum(func) << ", " << ref << ", "
<< mask << ")");
+ DCHECK(g_driver_gl.debug_fn.glStencilFuncFn != nullptr);
g_driver_gl.debug_fn.glStencilFuncFn(func, ref, mask);
}
@@ -4363,12 +4606,14 @@ static void GL_BINDING_CALL Debug_glStencilFuncSeparate(GLenum face,
<< "(" << GLEnums::GetStringEnum(face) << ", "
<< GLEnums::GetStringEnum(func) << ", " << ref << ", " << mask
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glStencilFuncSeparateFn != nullptr);
g_driver_gl.debug_fn.glStencilFuncSeparateFn(face, func, ref, mask);
}
static void GL_BINDING_CALL Debug_glStencilMask(GLuint mask) {
GL_SERVICE_LOG("glStencilMask"
<< "(" << mask << ")");
+ DCHECK(g_driver_gl.debug_fn.glStencilMaskFn != nullptr);
g_driver_gl.debug_fn.glStencilMaskFn(mask);
}
@@ -4376,6 +4621,7 @@ static void GL_BINDING_CALL Debug_glStencilMaskSeparate(GLenum face,
GLuint mask) {
GL_SERVICE_LOG("glStencilMaskSeparate"
<< "(" << GLEnums::GetStringEnum(face) << ", " << mask << ")");
+ DCHECK(g_driver_gl.debug_fn.glStencilMaskSeparateFn != nullptr);
g_driver_gl.debug_fn.glStencilMaskSeparateFn(face, mask);
}
@@ -4386,6 +4632,7 @@ static void GL_BINDING_CALL Debug_glStencilOp(GLenum fail,
<< "(" << GLEnums::GetStringEnum(fail) << ", "
<< GLEnums::GetStringEnum(zfail) << ", "
<< GLEnums::GetStringEnum(zpass) << ")");
+ DCHECK(g_driver_gl.debug_fn.glStencilOpFn != nullptr);
g_driver_gl.debug_fn.glStencilOpFn(fail, zfail, zpass);
}
@@ -4398,6 +4645,7 @@ static void GL_BINDING_CALL Debug_glStencilOpSeparate(GLenum face,
<< GLEnums::GetStringEnum(fail) << ", "
<< GLEnums::GetStringEnum(zfail) << ", "
<< GLEnums::GetStringEnum(zpass) << ")");
+ DCHECK(g_driver_gl.debug_fn.glStencilOpSeparateFn != nullptr);
g_driver_gl.debug_fn.glStencilOpSeparateFn(face, fail, zfail, zpass);
}
@@ -4416,6 +4664,7 @@ Debug_glStencilStrokePathInstancedNV(GLsizei numPaths,
<< static_cast<const void*>(paths) << ", " << pathBase << ", " << ref
<< ", " << mask << ", " << GLEnums::GetStringEnum(transformType) << ", "
<< static_cast<const void*>(transformValues) << ")");
+ DCHECK(g_driver_gl.debug_fn.glStencilStrokePathInstancedNVFn != nullptr);
g_driver_gl.debug_fn.glStencilStrokePathInstancedNVFn(
numPaths, pathNameType, paths, pathBase, ref, mask, transformType,
transformValues);
@@ -4426,6 +4675,7 @@ static void GL_BINDING_CALL Debug_glStencilStrokePathNV(GLuint path,
GLuint mask) {
GL_SERVICE_LOG("glStencilStrokePathNV"
<< "(" << path << ", " << reference << ", " << mask << ")");
+ DCHECK(g_driver_gl.debug_fn.glStencilStrokePathNVFn != nullptr);
g_driver_gl.debug_fn.glStencilStrokePathNVFn(path, reference, mask);
}
@@ -4447,6 +4697,8 @@ Debug_glStencilThenCoverFillPathInstancedNV(GLsizei numPaths,
<< GLEnums::GetStringEnum(coverMode) << ", "
<< GLEnums::GetStringEnum(transformType) << ", "
<< static_cast<const void*>(transformValues) << ")");
+ DCHECK(g_driver_gl.debug_fn.glStencilThenCoverFillPathInstancedNVFn !=
+ nullptr);
g_driver_gl.debug_fn.glStencilThenCoverFillPathInstancedNVFn(
numPaths, pathNameType, paths, pathBase, fillMode, mask, coverMode,
transformType, transformValues);
@@ -4461,6 +4713,7 @@ Debug_glStencilThenCoverFillPathNV(GLuint path,
<< "(" << path << ", " << GLEnums::GetStringEnum(fillMode)
<< ", " << mask << ", " << GLEnums::GetStringEnum(coverMode)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glStencilThenCoverFillPathNVFn != nullptr);
g_driver_gl.debug_fn.glStencilThenCoverFillPathNVFn(path, fillMode, mask,
coverMode);
}
@@ -4482,6 +4735,8 @@ Debug_glStencilThenCoverStrokePathInstancedNV(GLsizei numPaths,
<< ", " << mask << ", " << GLEnums::GetStringEnum(coverMode) << ", "
<< GLEnums::GetStringEnum(transformType) << ", "
<< static_cast<const void*>(transformValues) << ")");
+ DCHECK(g_driver_gl.debug_fn.glStencilThenCoverStrokePathInstancedNVFn !=
+ nullptr);
g_driver_gl.debug_fn.glStencilThenCoverStrokePathInstancedNVFn(
numPaths, pathNameType, paths, pathBase, ref, mask, coverMode,
transformType, transformValues);
@@ -4495,6 +4750,7 @@ Debug_glStencilThenCoverStrokePathNV(GLuint path,
GL_SERVICE_LOG("glStencilThenCoverStrokePathNV"
<< "(" << path << ", " << reference << ", " << mask << ", "
<< GLEnums::GetStringEnum(coverMode) << ")");
+ DCHECK(g_driver_gl.debug_fn.glStencilThenCoverStrokePathNVFn != nullptr);
g_driver_gl.debug_fn.glStencilThenCoverStrokePathNVFn(path, reference, mask,
coverMode);
}
@@ -4502,6 +4758,7 @@ Debug_glStencilThenCoverStrokePathNV(GLuint path,
static GLboolean GL_BINDING_CALL Debug_glTestFenceAPPLE(GLuint fence) {
GL_SERVICE_LOG("glTestFenceAPPLE"
<< "(" << fence << ")");
+ DCHECK(g_driver_gl.debug_fn.glTestFenceAPPLEFn != nullptr);
GLboolean result = g_driver_gl.debug_fn.glTestFenceAPPLEFn(fence);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -4510,6 +4767,7 @@ static GLboolean GL_BINDING_CALL Debug_glTestFenceAPPLE(GLuint fence) {
static GLboolean GL_BINDING_CALL Debug_glTestFenceNV(GLuint fence) {
GL_SERVICE_LOG("glTestFenceNV"
<< "(" << fence << ")");
+ DCHECK(g_driver_gl.debug_fn.glTestFenceNVFn != nullptr);
GLboolean result = g_driver_gl.debug_fn.glTestFenceNVFn(fence);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -4530,6 +4788,7 @@ static void GL_BINDING_CALL Debug_glTexImage2D(GLenum target,
<< ", " << border << ", " << GLEnums::GetStringEnum(format)
<< ", " << GLEnums::GetStringEnum(type) << ", "
<< static_cast<const void*>(pixels) << ")");
+ DCHECK(g_driver_gl.debug_fn.glTexImage2DFn != nullptr);
g_driver_gl.debug_fn.glTexImage2DFn(target, level, internalformat, width,
height, border, format, type, pixels);
}
@@ -4551,6 +4810,7 @@ static void GL_BINDING_CALL Debug_glTexImage3D(GLenum target,
<< GLEnums::GetStringEnum(format) << ", "
<< GLEnums::GetStringEnum(type) << ", "
<< static_cast<const void*>(pixels) << ")");
+ DCHECK(g_driver_gl.debug_fn.glTexImage3DFn != nullptr);
g_driver_gl.debug_fn.glTexImage3DFn(target, level, internalformat, width,
height, depth, border, format, type,
pixels);
@@ -4562,6 +4822,7 @@ static void GL_BINDING_CALL Debug_glTexParameterf(GLenum target,
GL_SERVICE_LOG("glTexParameterf"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", " << param << ")");
+ DCHECK(g_driver_gl.debug_fn.glTexParameterfFn != nullptr);
g_driver_gl.debug_fn.glTexParameterfFn(target, pname, param);
}
@@ -4572,6 +4833,7 @@ static void GL_BINDING_CALL Debug_glTexParameterfv(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glTexParameterfvFn != nullptr);
g_driver_gl.debug_fn.glTexParameterfvFn(target, pname, params);
}
@@ -4581,6 +4843,7 @@ static void GL_BINDING_CALL Debug_glTexParameteri(GLenum target,
GL_SERVICE_LOG("glTexParameteri"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", " << param << ")");
+ DCHECK(g_driver_gl.debug_fn.glTexParameteriFn != nullptr);
g_driver_gl.debug_fn.glTexParameteriFn(target, pname, param);
}
@@ -4591,6 +4854,7 @@ static void GL_BINDING_CALL Debug_glTexParameteriv(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
+ DCHECK(g_driver_gl.debug_fn.glTexParameterivFn != nullptr);
g_driver_gl.debug_fn.glTexParameterivFn(target, pname, params);
}
@@ -4603,6 +4867,7 @@ static void GL_BINDING_CALL Debug_glTexStorage2DEXT(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", " << levels
<< ", " << GLEnums::GetStringEnum(internalformat) << ", "
<< width << ", " << height << ")");
+ DCHECK(g_driver_gl.debug_fn.glTexStorage2DEXTFn != nullptr);
g_driver_gl.debug_fn.glTexStorage2DEXTFn(target, levels, internalformat,
width, height);
}
@@ -4617,6 +4882,7 @@ static void GL_BINDING_CALL Debug_glTexStorage3D(GLenum target,
<< "(" << GLEnums::GetStringEnum(target) << ", " << levels
<< ", " << GLEnums::GetStringEnum(internalformat) << ", "
<< width << ", " << height << ", " << depth << ")");
+ DCHECK(g_driver_gl.debug_fn.glTexStorage3DFn != nullptr);
g_driver_gl.debug_fn.glTexStorage3DFn(target, levels, internalformat, width,
height, depth);
}
@@ -4636,6 +4902,7 @@ static void GL_BINDING_CALL Debug_glTexSubImage2D(GLenum target,
<< height << ", " << GLEnums::GetStringEnum(format) << ", "
<< GLEnums::GetStringEnum(type) << ", "
<< static_cast<const void*>(pixels) << ")");
+ DCHECK(g_driver_gl.debug_fn.glTexSubImage2DFn != nullptr);
g_driver_gl.debug_fn.glTexSubImage2DFn(target, level, xoffset, yoffset, width,
height, format, type, pixels);
}
@@ -4658,6 +4925,7 @@ static void GL_BINDING_CALL Debug_glTexSubImage3D(GLenum target,
<< GLEnums::GetStringEnum(format) << ", "
<< GLEnums::GetStringEnum(type) << ", "
<< static_cast<const void*>(pixels) << ")");
+ DCHECK(g_driver_gl.debug_fn.glTexSubImage3DFn != nullptr);
g_driver_gl.debug_fn.glTexSubImage3DFn(target, level, xoffset, yoffset,
zoffset, width, height, depth, format,
type, pixels);
@@ -4672,6 +4940,7 @@ Debug_glTransformFeedbackVaryings(GLuint program,
<< "(" << program << ", " << count << ", "
<< static_cast<const void*>(varyings) << ", "
<< GLEnums::GetStringEnum(bufferMode) << ")");
+ DCHECK(g_driver_gl.debug_fn.glTransformFeedbackVaryingsFn != nullptr);
g_driver_gl.debug_fn.glTransformFeedbackVaryingsFn(program, count, varyings,
bufferMode);
}
@@ -4679,6 +4948,7 @@ Debug_glTransformFeedbackVaryings(GLuint program,
static void GL_BINDING_CALL Debug_glUniform1f(GLint location, GLfloat x) {
GL_SERVICE_LOG("glUniform1f"
<< "(" << location << ", " << x << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform1fFn != nullptr);
g_driver_gl.debug_fn.glUniform1fFn(location, x);
}
@@ -4688,12 +4958,14 @@ static void GL_BINDING_CALL Debug_glUniform1fv(GLint location,
GL_SERVICE_LOG("glUniform1fv"
<< "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform1fvFn != nullptr);
g_driver_gl.debug_fn.glUniform1fvFn(location, count, v);
}
static void GL_BINDING_CALL Debug_glUniform1i(GLint location, GLint x) {
GL_SERVICE_LOG("glUniform1i"
<< "(" << location << ", " << x << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform1iFn != nullptr);
g_driver_gl.debug_fn.glUniform1iFn(location, x);
}
@@ -4703,12 +4975,14 @@ static void GL_BINDING_CALL Debug_glUniform1iv(GLint location,
GL_SERVICE_LOG("glUniform1iv"
<< "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform1ivFn != nullptr);
g_driver_gl.debug_fn.glUniform1ivFn(location, count, v);
}
static void GL_BINDING_CALL Debug_glUniform1ui(GLint location, GLuint v0) {
GL_SERVICE_LOG("glUniform1ui"
<< "(" << location << ", " << v0 << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform1uiFn != nullptr);
g_driver_gl.debug_fn.glUniform1uiFn(location, v0);
}
@@ -4718,6 +4992,7 @@ static void GL_BINDING_CALL Debug_glUniform1uiv(GLint location,
GL_SERVICE_LOG("glUniform1uiv"
<< "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform1uivFn != nullptr);
g_driver_gl.debug_fn.glUniform1uivFn(location, count, v);
}
@@ -4726,6 +5001,7 @@ static void GL_BINDING_CALL Debug_glUniform2f(GLint location,
GLfloat y) {
GL_SERVICE_LOG("glUniform2f"
<< "(" << location << ", " << x << ", " << y << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform2fFn != nullptr);
g_driver_gl.debug_fn.glUniform2fFn(location, x, y);
}
@@ -4735,6 +5011,7 @@ static void GL_BINDING_CALL Debug_glUniform2fv(GLint location,
GL_SERVICE_LOG("glUniform2fv"
<< "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform2fvFn != nullptr);
g_driver_gl.debug_fn.glUniform2fvFn(location, count, v);
}
@@ -4743,6 +5020,7 @@ static void GL_BINDING_CALL Debug_glUniform2i(GLint location,
GLint y) {
GL_SERVICE_LOG("glUniform2i"
<< "(" << location << ", " << x << ", " << y << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform2iFn != nullptr);
g_driver_gl.debug_fn.glUniform2iFn(location, x, y);
}
@@ -4752,6 +5030,7 @@ static void GL_BINDING_CALL Debug_glUniform2iv(GLint location,
GL_SERVICE_LOG("glUniform2iv"
<< "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform2ivFn != nullptr);
g_driver_gl.debug_fn.glUniform2ivFn(location, count, v);
}
@@ -4760,6 +5039,7 @@ static void GL_BINDING_CALL Debug_glUniform2ui(GLint location,
GLuint v1) {
GL_SERVICE_LOG("glUniform2ui"
<< "(" << location << ", " << v0 << ", " << v1 << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform2uiFn != nullptr);
g_driver_gl.debug_fn.glUniform2uiFn(location, v0, v1);
}
@@ -4769,6 +5049,7 @@ static void GL_BINDING_CALL Debug_glUniform2uiv(GLint location,
GL_SERVICE_LOG("glUniform2uiv"
<< "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform2uivFn != nullptr);
g_driver_gl.debug_fn.glUniform2uivFn(location, count, v);
}
@@ -4779,6 +5060,7 @@ static void GL_BINDING_CALL Debug_glUniform3f(GLint location,
GL_SERVICE_LOG("glUniform3f"
<< "(" << location << ", " << x << ", " << y << ", " << z
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform3fFn != nullptr);
g_driver_gl.debug_fn.glUniform3fFn(location, x, y, z);
}
@@ -4788,6 +5070,7 @@ static void GL_BINDING_CALL Debug_glUniform3fv(GLint location,
GL_SERVICE_LOG("glUniform3fv"
<< "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform3fvFn != nullptr);
g_driver_gl.debug_fn.glUniform3fvFn(location, count, v);
}
@@ -4798,6 +5081,7 @@ static void GL_BINDING_CALL Debug_glUniform3i(GLint location,
GL_SERVICE_LOG("glUniform3i"
<< "(" << location << ", " << x << ", " << y << ", " << z
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform3iFn != nullptr);
g_driver_gl.debug_fn.glUniform3iFn(location, x, y, z);
}
@@ -4807,6 +5091,7 @@ static void GL_BINDING_CALL Debug_glUniform3iv(GLint location,
GL_SERVICE_LOG("glUniform3iv"
<< "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform3ivFn != nullptr);
g_driver_gl.debug_fn.glUniform3ivFn(location, count, v);
}
@@ -4817,6 +5102,7 @@ static void GL_BINDING_CALL Debug_glUniform3ui(GLint location,
GL_SERVICE_LOG("glUniform3ui"
<< "(" << location << ", " << v0 << ", " << v1 << ", " << v2
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform3uiFn != nullptr);
g_driver_gl.debug_fn.glUniform3uiFn(location, v0, v1, v2);
}
@@ -4826,6 +5112,7 @@ static void GL_BINDING_CALL Debug_glUniform3uiv(GLint location,
GL_SERVICE_LOG("glUniform3uiv"
<< "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform3uivFn != nullptr);
g_driver_gl.debug_fn.glUniform3uivFn(location, count, v);
}
@@ -4834,6 +5121,7 @@ Debug_glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
GL_SERVICE_LOG("glUniform4f"
<< "(" << location << ", " << x << ", " << y << ", " << z
<< ", " << w << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform4fFn != nullptr);
g_driver_gl.debug_fn.glUniform4fFn(location, x, y, z, w);
}
@@ -4843,6 +5131,7 @@ static void GL_BINDING_CALL Debug_glUniform4fv(GLint location,
GL_SERVICE_LOG("glUniform4fv"
<< "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform4fvFn != nullptr);
g_driver_gl.debug_fn.glUniform4fvFn(location, count, v);
}
@@ -4851,6 +5140,7 @@ Debug_glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) {
GL_SERVICE_LOG("glUniform4i"
<< "(" << location << ", " << x << ", " << y << ", " << z
<< ", " << w << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform4iFn != nullptr);
g_driver_gl.debug_fn.glUniform4iFn(location, x, y, z, w);
}
@@ -4860,6 +5150,7 @@ static void GL_BINDING_CALL Debug_glUniform4iv(GLint location,
GL_SERVICE_LOG("glUniform4iv"
<< "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform4ivFn != nullptr);
g_driver_gl.debug_fn.glUniform4ivFn(location, count, v);
}
@@ -4868,6 +5159,7 @@ Debug_glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) {
GL_SERVICE_LOG("glUniform4ui"
<< "(" << location << ", " << v0 << ", " << v1 << ", " << v2
<< ", " << v3 << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform4uiFn != nullptr);
g_driver_gl.debug_fn.glUniform4uiFn(location, v0, v1, v2, v3);
}
@@ -4877,6 +5169,7 @@ static void GL_BINDING_CALL Debug_glUniform4uiv(GLint location,
GL_SERVICE_LOG("glUniform4uiv"
<< "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniform4uivFn != nullptr);
g_driver_gl.debug_fn.glUniform4uivFn(location, count, v);
}
@@ -4887,6 +5180,7 @@ Debug_glUniformBlockBinding(GLuint program,
GL_SERVICE_LOG("glUniformBlockBinding"
<< "(" << program << ", " << uniformBlockIndex << ", "
<< uniformBlockBinding << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniformBlockBindingFn != nullptr);
g_driver_gl.debug_fn.glUniformBlockBindingFn(program, uniformBlockIndex,
uniformBlockBinding);
}
@@ -4899,6 +5193,7 @@ static void GL_BINDING_CALL Debug_glUniformMatrix2fv(GLint location,
<< "(" << location << ", " << count << ", "
<< GLEnums::GetStringBool(transpose) << ", "
<< static_cast<const void*>(value) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniformMatrix2fvFn != nullptr);
g_driver_gl.debug_fn.glUniformMatrix2fvFn(location, count, transpose, value);
}
@@ -4910,6 +5205,7 @@ static void GL_BINDING_CALL Debug_glUniformMatrix2x3fv(GLint location,
<< "(" << location << ", " << count << ", "
<< GLEnums::GetStringBool(transpose) << ", "
<< static_cast<const void*>(value) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniformMatrix2x3fvFn != nullptr);
g_driver_gl.debug_fn.glUniformMatrix2x3fvFn(location, count, transpose,
value);
}
@@ -4922,6 +5218,7 @@ static void GL_BINDING_CALL Debug_glUniformMatrix2x4fv(GLint location,
<< "(" << location << ", " << count << ", "
<< GLEnums::GetStringBool(transpose) << ", "
<< static_cast<const void*>(value) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniformMatrix2x4fvFn != nullptr);
g_driver_gl.debug_fn.glUniformMatrix2x4fvFn(location, count, transpose,
value);
}
@@ -4934,6 +5231,7 @@ static void GL_BINDING_CALL Debug_glUniformMatrix3fv(GLint location,
<< "(" << location << ", " << count << ", "
<< GLEnums::GetStringBool(transpose) << ", "
<< static_cast<const void*>(value) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniformMatrix3fvFn != nullptr);
g_driver_gl.debug_fn.glUniformMatrix3fvFn(location, count, transpose, value);
}
@@ -4945,6 +5243,7 @@ static void GL_BINDING_CALL Debug_glUniformMatrix3x2fv(GLint location,
<< "(" << location << ", " << count << ", "
<< GLEnums::GetStringBool(transpose) << ", "
<< static_cast<const void*>(value) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniformMatrix3x2fvFn != nullptr);
g_driver_gl.debug_fn.glUniformMatrix3x2fvFn(location, count, transpose,
value);
}
@@ -4957,6 +5256,7 @@ static void GL_BINDING_CALL Debug_glUniformMatrix3x4fv(GLint location,
<< "(" << location << ", " << count << ", "
<< GLEnums::GetStringBool(transpose) << ", "
<< static_cast<const void*>(value) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniformMatrix3x4fvFn != nullptr);
g_driver_gl.debug_fn.glUniformMatrix3x4fvFn(location, count, transpose,
value);
}
@@ -4969,6 +5269,7 @@ static void GL_BINDING_CALL Debug_glUniformMatrix4fv(GLint location,
<< "(" << location << ", " << count << ", "
<< GLEnums::GetStringBool(transpose) << ", "
<< static_cast<const void*>(value) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniformMatrix4fvFn != nullptr);
g_driver_gl.debug_fn.glUniformMatrix4fvFn(location, count, transpose, value);
}
@@ -4980,6 +5281,7 @@ static void GL_BINDING_CALL Debug_glUniformMatrix4x2fv(GLint location,
<< "(" << location << ", " << count << ", "
<< GLEnums::GetStringBool(transpose) << ", "
<< static_cast<const void*>(value) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniformMatrix4x2fvFn != nullptr);
g_driver_gl.debug_fn.glUniformMatrix4x2fvFn(location, count, transpose,
value);
}
@@ -4992,6 +5294,7 @@ static void GL_BINDING_CALL Debug_glUniformMatrix4x3fv(GLint location,
<< "(" << location << ", " << count << ", "
<< GLEnums::GetStringBool(transpose) << ", "
<< static_cast<const void*>(value) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUniformMatrix4x3fvFn != nullptr);
g_driver_gl.debug_fn.glUniformMatrix4x3fvFn(location, count, transpose,
value);
}
@@ -4999,6 +5302,7 @@ static void GL_BINDING_CALL Debug_glUniformMatrix4x3fv(GLint location,
static GLboolean GL_BINDING_CALL Debug_glUnmapBuffer(GLenum target) {
GL_SERVICE_LOG("glUnmapBuffer"
<< "(" << GLEnums::GetStringEnum(target) << ")");
+ DCHECK(g_driver_gl.debug_fn.glUnmapBufferFn != nullptr);
GLboolean result = g_driver_gl.debug_fn.glUnmapBufferFn(target);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -5007,18 +5311,21 @@ static GLboolean GL_BINDING_CALL Debug_glUnmapBuffer(GLenum target) {
static void GL_BINDING_CALL Debug_glUseProgram(GLuint program) {
GL_SERVICE_LOG("glUseProgram"
<< "(" << program << ")");
+ DCHECK(g_driver_gl.debug_fn.glUseProgramFn != nullptr);
g_driver_gl.debug_fn.glUseProgramFn(program);
}
static void GL_BINDING_CALL Debug_glValidateProgram(GLuint program) {
GL_SERVICE_LOG("glValidateProgram"
<< "(" << program << ")");
+ DCHECK(g_driver_gl.debug_fn.glValidateProgramFn != nullptr);
g_driver_gl.debug_fn.glValidateProgramFn(program);
}
static void GL_BINDING_CALL Debug_glVertexAttrib1f(GLuint indx, GLfloat x) {
GL_SERVICE_LOG("glVertexAttrib1f"
<< "(" << indx << ", " << x << ")");
+ DCHECK(g_driver_gl.debug_fn.glVertexAttrib1fFn != nullptr);
g_driver_gl.debug_fn.glVertexAttrib1fFn(indx, x);
}
@@ -5027,6 +5334,7 @@ static void GL_BINDING_CALL Debug_glVertexAttrib1fv(GLuint indx,
GL_SERVICE_LOG("glVertexAttrib1fv"
<< "(" << indx << ", " << static_cast<const void*>(values)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glVertexAttrib1fvFn != nullptr);
g_driver_gl.debug_fn.glVertexAttrib1fvFn(indx, values);
}
@@ -5035,6 +5343,7 @@ static void GL_BINDING_CALL Debug_glVertexAttrib2f(GLuint indx,
GLfloat y) {
GL_SERVICE_LOG("glVertexAttrib2f"
<< "(" << indx << ", " << x << ", " << y << ")");
+ DCHECK(g_driver_gl.debug_fn.glVertexAttrib2fFn != nullptr);
g_driver_gl.debug_fn.glVertexAttrib2fFn(indx, x, y);
}
@@ -5043,6 +5352,7 @@ static void GL_BINDING_CALL Debug_glVertexAttrib2fv(GLuint indx,
GL_SERVICE_LOG("glVertexAttrib2fv"
<< "(" << indx << ", " << static_cast<const void*>(values)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glVertexAttrib2fvFn != nullptr);
g_driver_gl.debug_fn.glVertexAttrib2fvFn(indx, values);
}
@@ -5052,6 +5362,7 @@ static void GL_BINDING_CALL Debug_glVertexAttrib3f(GLuint indx,
GLfloat z) {
GL_SERVICE_LOG("glVertexAttrib3f"
<< "(" << indx << ", " << x << ", " << y << ", " << z << ")");
+ DCHECK(g_driver_gl.debug_fn.glVertexAttrib3fFn != nullptr);
g_driver_gl.debug_fn.glVertexAttrib3fFn(indx, x, y, z);
}
@@ -5060,6 +5371,7 @@ static void GL_BINDING_CALL Debug_glVertexAttrib3fv(GLuint indx,
GL_SERVICE_LOG("glVertexAttrib3fv"
<< "(" << indx << ", " << static_cast<const void*>(values)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glVertexAttrib3fvFn != nullptr);
g_driver_gl.debug_fn.glVertexAttrib3fvFn(indx, values);
}
@@ -5071,6 +5383,7 @@ static void GL_BINDING_CALL Debug_glVertexAttrib4f(GLuint indx,
GL_SERVICE_LOG("glVertexAttrib4f"
<< "(" << indx << ", " << x << ", " << y << ", " << z << ", "
<< w << ")");
+ DCHECK(g_driver_gl.debug_fn.glVertexAttrib4fFn != nullptr);
g_driver_gl.debug_fn.glVertexAttrib4fFn(indx, x, y, z, w);
}
@@ -5079,6 +5392,7 @@ static void GL_BINDING_CALL Debug_glVertexAttrib4fv(GLuint indx,
GL_SERVICE_LOG("glVertexAttrib4fv"
<< "(" << indx << ", " << static_cast<const void*>(values)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glVertexAttrib4fvFn != nullptr);
g_driver_gl.debug_fn.glVertexAttrib4fvFn(indx, values);
}
@@ -5086,6 +5400,7 @@ static void GL_BINDING_CALL Debug_glVertexAttribDivisorANGLE(GLuint index,
GLuint divisor) {
GL_SERVICE_LOG("glVertexAttribDivisorANGLE"
<< "(" << index << ", " << divisor << ")");
+ DCHECK(g_driver_gl.debug_fn.glVertexAttribDivisorANGLEFn != nullptr);
g_driver_gl.debug_fn.glVertexAttribDivisorANGLEFn(index, divisor);
}
@@ -5094,6 +5409,7 @@ Debug_glVertexAttribI4i(GLuint indx, GLint x, GLint y, GLint z, GLint w) {
GL_SERVICE_LOG("glVertexAttribI4i"
<< "(" << indx << ", " << x << ", " << y << ", " << z << ", "
<< w << ")");
+ DCHECK(g_driver_gl.debug_fn.glVertexAttribI4iFn != nullptr);
g_driver_gl.debug_fn.glVertexAttribI4iFn(indx, x, y, z, w);
}
@@ -5102,6 +5418,7 @@ static void GL_BINDING_CALL Debug_glVertexAttribI4iv(GLuint indx,
GL_SERVICE_LOG("glVertexAttribI4iv"
<< "(" << indx << ", " << static_cast<const void*>(values)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glVertexAttribI4ivFn != nullptr);
g_driver_gl.debug_fn.glVertexAttribI4ivFn(indx, values);
}
@@ -5110,6 +5427,7 @@ Debug_glVertexAttribI4ui(GLuint indx, GLuint x, GLuint y, GLuint z, GLuint w) {
GL_SERVICE_LOG("glVertexAttribI4ui"
<< "(" << indx << ", " << x << ", " << y << ", " << z << ", "
<< w << ")");
+ DCHECK(g_driver_gl.debug_fn.glVertexAttribI4uiFn != nullptr);
g_driver_gl.debug_fn.glVertexAttribI4uiFn(indx, x, y, z, w);
}
@@ -5118,6 +5436,7 @@ static void GL_BINDING_CALL Debug_glVertexAttribI4uiv(GLuint indx,
GL_SERVICE_LOG("glVertexAttribI4uiv"
<< "(" << indx << ", " << static_cast<const void*>(values)
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glVertexAttribI4uivFn != nullptr);
g_driver_gl.debug_fn.glVertexAttribI4uivFn(indx, values);
}
@@ -5130,6 +5449,7 @@ static void GL_BINDING_CALL Debug_glVertexAttribIPointer(GLuint indx,
<< "(" << indx << ", " << size << ", "
<< GLEnums::GetStringEnum(type) << ", " << stride << ", "
<< static_cast<const void*>(ptr) << ")");
+ DCHECK(g_driver_gl.debug_fn.glVertexAttribIPointerFn != nullptr);
g_driver_gl.debug_fn.glVertexAttribIPointerFn(indx, size, type, stride, ptr);
}
@@ -5144,6 +5464,7 @@ static void GL_BINDING_CALL Debug_glVertexAttribPointer(GLuint indx,
<< GLEnums::GetStringEnum(type) << ", "
<< GLEnums::GetStringBool(normalized) << ", " << stride << ", "
<< static_cast<const void*>(ptr) << ")");
+ DCHECK(g_driver_gl.debug_fn.glVertexAttribPointerFn != nullptr);
g_driver_gl.debug_fn.glVertexAttribPointerFn(indx, size, type, normalized,
stride, ptr);
}
@@ -5155,6 +5476,7 @@ static void GL_BINDING_CALL Debug_glViewport(GLint x,
GL_SERVICE_LOG("glViewport"
<< "(" << x << ", " << y << ", " << width << ", " << height
<< ")");
+ DCHECK(g_driver_gl.debug_fn.glViewportFn != nullptr);
g_driver_gl.debug_fn.glViewportFn(x, y, width, height);
}
@@ -5163,6 +5485,7 @@ static GLenum GL_BINDING_CALL Debug_glWaitSync(GLsync sync,
GLuint64 timeout) {
GL_SERVICE_LOG("glWaitSync"
<< "(" << sync << ", " << flags << ", " << timeout << ")");
+ DCHECK(g_driver_gl.debug_fn.glWaitSyncFn != nullptr);
GLenum result = g_driver_gl.debug_fn.glWaitSyncFn(sync, flags, timeout);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
diff --git a/ui/gl/gl_bindings_autogen_glx.cc b/ui/gl/gl_bindings_autogen_glx.cc
index 02aee39..819cd01 100644
--- a/ui/gl/gl_bindings_autogen_glx.cc
+++ b/ui/gl/gl_bindings_autogen_glx.cc
@@ -212,6 +212,7 @@ static void GL_BINDING_CALL Debug_glXBindTexImageEXT(Display* dpy,
<< "(" << static_cast<const void*>(dpy) << ", " << drawable
<< ", " << buffer << ", "
<< static_cast<const void*>(attribList) << ")");
+ DCHECK(g_driver_glx.debug_fn.glXBindTexImageEXTFn != nullptr);
g_driver_glx.debug_fn.glXBindTexImageEXTFn(dpy, drawable, buffer, attribList);
}
@@ -224,6 +225,7 @@ Debug_glXChooseFBConfig(Display* dpy,
<< "(" << static_cast<const void*>(dpy) << ", " << screen
<< ", " << static_cast<const void*>(attribList) << ", "
<< static_cast<const void*>(nitems) << ")");
+ DCHECK(g_driver_glx.debug_fn.glXChooseFBConfigFn != nullptr);
GLXFBConfig* result = g_driver_glx.debug_fn.glXChooseFBConfigFn(
dpy, screen, attribList, nitems);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -236,6 +238,7 @@ static XVisualInfo* GL_BINDING_CALL Debug_glXChooseVisual(Display* dpy,
GL_SERVICE_LOG("glXChooseVisual"
<< "(" << static_cast<const void*>(dpy) << ", " << screen
<< ", " << static_cast<const void*>(attribList) << ")");
+ DCHECK(g_driver_glx.debug_fn.glXChooseVisualFn != nullptr);
XVisualInfo* result =
g_driver_glx.debug_fn.glXChooseVisualFn(dpy, screen, attribList);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -249,6 +252,7 @@ static void GL_BINDING_CALL Debug_glXCopyContext(Display* dpy,
GL_SERVICE_LOG("glXCopyContext"
<< "(" << static_cast<const void*>(dpy) << ", " << src << ", "
<< dst << ", " << mask << ")");
+ DCHECK(g_driver_glx.debug_fn.glXCopyContextFn != nullptr);
g_driver_glx.debug_fn.glXCopyContextFn(dpy, src, dst, mask);
}
@@ -262,6 +266,7 @@ static void GL_BINDING_CALL Debug_glXCopySubBufferMESA(Display* dpy,
<< "(" << static_cast<const void*>(dpy) << ", " << drawable
<< ", " << x << ", " << y << ", " << width << ", " << height
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXCopySubBufferMESAFn != nullptr);
g_driver_glx.debug_fn.glXCopySubBufferMESAFn(dpy, drawable, x, y, width,
height);
}
@@ -274,6 +279,7 @@ static GLXContext GL_BINDING_CALL Debug_glXCreateContext(Display* dpy,
<< "(" << static_cast<const void*>(dpy) << ", "
<< static_cast<const void*>(vis) << ", " << shareList << ", "
<< direct << ")");
+ DCHECK(g_driver_glx.debug_fn.glXCreateContextFn != nullptr);
GLXContext result =
g_driver_glx.debug_fn.glXCreateContextFn(dpy, vis, shareList, direct);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -290,6 +296,7 @@ Debug_glXCreateContextAttribsARB(Display* dpy,
<< "(" << static_cast<const void*>(dpy) << ", " << config
<< ", " << share_context << ", " << direct << ", "
<< static_cast<const void*>(attrib_list) << ")");
+ DCHECK(g_driver_glx.debug_fn.glXCreateContextAttribsARBFn != nullptr);
GLXContext result = g_driver_glx.debug_fn.glXCreateContextAttribsARBFn(
dpy, config, share_context, direct, attrib_list);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -302,6 +309,7 @@ static GLXPixmap GL_BINDING_CALL Debug_glXCreateGLXPixmap(Display* dpy,
GL_SERVICE_LOG("glXCreateGLXPixmap"
<< "(" << static_cast<const void*>(dpy) << ", "
<< static_cast<const void*>(visual) << ", " << pixmap << ")");
+ DCHECK(g_driver_glx.debug_fn.glXCreateGLXPixmapFn != nullptr);
GLXPixmap result =
g_driver_glx.debug_fn.glXCreateGLXPixmapFn(dpy, visual, pixmap);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -318,6 +326,7 @@ Debug_glXCreateNewContext(Display* dpy,
<< "(" << static_cast<const void*>(dpy) << ", " << config
<< ", " << renderType << ", " << shareList << ", " << direct
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXCreateNewContextFn != nullptr);
GLXContext result = g_driver_glx.debug_fn.glXCreateNewContextFn(
dpy, config, renderType, shareList, direct);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -331,6 +340,7 @@ Debug_glXCreatePbuffer(Display* dpy,
GL_SERVICE_LOG("glXCreatePbuffer"
<< "(" << static_cast<const void*>(dpy) << ", " << config
<< ", " << static_cast<const void*>(attribList) << ")");
+ DCHECK(g_driver_glx.debug_fn.glXCreatePbufferFn != nullptr);
GLXPbuffer result =
g_driver_glx.debug_fn.glXCreatePbufferFn(dpy, config, attribList);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -345,6 +355,7 @@ static GLXPixmap GL_BINDING_CALL Debug_glXCreatePixmap(Display* dpy,
<< "(" << static_cast<const void*>(dpy) << ", " << config
<< ", " << pixmap << ", "
<< static_cast<const void*>(attribList) << ")");
+ DCHECK(g_driver_glx.debug_fn.glXCreatePixmapFn != nullptr);
GLXPixmap result =
g_driver_glx.debug_fn.glXCreatePixmapFn(dpy, config, pixmap, attribList);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -359,6 +370,7 @@ static GLXWindow GL_BINDING_CALL Debug_glXCreateWindow(Display* dpy,
<< "(" << static_cast<const void*>(dpy) << ", " << config
<< ", " << win << ", " << static_cast<const void*>(attribList)
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXCreateWindowFn != nullptr);
GLXWindow result =
g_driver_glx.debug_fn.glXCreateWindowFn(dpy, config, win, attribList);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -369,6 +381,7 @@ static void GL_BINDING_CALL Debug_glXDestroyContext(Display* dpy,
GLXContext ctx) {
GL_SERVICE_LOG("glXDestroyContext"
<< "(" << static_cast<const void*>(dpy) << ", " << ctx << ")");
+ DCHECK(g_driver_glx.debug_fn.glXDestroyContextFn != nullptr);
g_driver_glx.debug_fn.glXDestroyContextFn(dpy, ctx);
}
@@ -377,6 +390,7 @@ static void GL_BINDING_CALL Debug_glXDestroyGLXPixmap(Display* dpy,
GL_SERVICE_LOG("glXDestroyGLXPixmap"
<< "(" << static_cast<const void*>(dpy) << ", " << pixmap
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXDestroyGLXPixmapFn != nullptr);
g_driver_glx.debug_fn.glXDestroyGLXPixmapFn(dpy, pixmap);
}
@@ -385,6 +399,7 @@ static void GL_BINDING_CALL Debug_glXDestroyPbuffer(Display* dpy,
GL_SERVICE_LOG("glXDestroyPbuffer"
<< "(" << static_cast<const void*>(dpy) << ", " << pbuf
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXDestroyPbufferFn != nullptr);
g_driver_glx.debug_fn.glXDestroyPbufferFn(dpy, pbuf);
}
@@ -393,6 +408,7 @@ static void GL_BINDING_CALL Debug_glXDestroyPixmap(Display* dpy,
GL_SERVICE_LOG("glXDestroyPixmap"
<< "(" << static_cast<const void*>(dpy) << ", " << pixmap
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXDestroyPixmapFn != nullptr);
g_driver_glx.debug_fn.glXDestroyPixmapFn(dpy, pixmap);
}
@@ -401,6 +417,7 @@ static void GL_BINDING_CALL Debug_glXDestroyWindow(Display* dpy,
GL_SERVICE_LOG("glXDestroyWindow"
<< "(" << static_cast<const void*>(dpy) << ", " << window
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXDestroyWindowFn != nullptr);
g_driver_glx.debug_fn.glXDestroyWindowFn(dpy, window);
}
@@ -409,6 +426,7 @@ static const char* GL_BINDING_CALL Debug_glXGetClientString(Display* dpy,
GL_SERVICE_LOG("glXGetClientString"
<< "(" << static_cast<const void*>(dpy) << ", " << name
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXGetClientStringFn != nullptr);
const char* result = g_driver_glx.debug_fn.glXGetClientStringFn(dpy, name);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -422,6 +440,7 @@ static int GL_BINDING_CALL Debug_glXGetConfig(Display* dpy,
<< "(" << static_cast<const void*>(dpy) << ", "
<< static_cast<const void*>(visual) << ", " << attrib << ", "
<< static_cast<const void*>(value) << ")");
+ DCHECK(g_driver_glx.debug_fn.glXGetConfigFn != nullptr);
int result = g_driver_glx.debug_fn.glXGetConfigFn(dpy, visual, attrib, value);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -431,6 +450,7 @@ static GLXContext GL_BINDING_CALL Debug_glXGetCurrentContext(void) {
GL_SERVICE_LOG("glXGetCurrentContext"
<< "("
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXGetCurrentContextFn != nullptr);
GLXContext result = g_driver_glx.debug_fn.glXGetCurrentContextFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -440,6 +460,7 @@ static Display* GL_BINDING_CALL Debug_glXGetCurrentDisplay(void) {
GL_SERVICE_LOG("glXGetCurrentDisplay"
<< "("
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXGetCurrentDisplayFn != nullptr);
Display* result = g_driver_glx.debug_fn.glXGetCurrentDisplayFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -449,6 +470,7 @@ static GLXDrawable GL_BINDING_CALL Debug_glXGetCurrentDrawable(void) {
GL_SERVICE_LOG("glXGetCurrentDrawable"
<< "("
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXGetCurrentDrawableFn != nullptr);
GLXDrawable result = g_driver_glx.debug_fn.glXGetCurrentDrawableFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -458,6 +480,7 @@ static GLXDrawable GL_BINDING_CALL Debug_glXGetCurrentReadDrawable(void) {
GL_SERVICE_LOG("glXGetCurrentReadDrawable"
<< "("
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXGetCurrentReadDrawableFn != nullptr);
GLXDrawable result = g_driver_glx.debug_fn.glXGetCurrentReadDrawableFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -471,6 +494,7 @@ static int GL_BINDING_CALL Debug_glXGetFBConfigAttrib(Display* dpy,
<< "(" << static_cast<const void*>(dpy) << ", " << config
<< ", " << attribute << ", " << static_cast<const void*>(value)
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXGetFBConfigAttribFn != nullptr);
int result = g_driver_glx.debug_fn.glXGetFBConfigAttribFn(dpy, config,
attribute, value);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -482,6 +506,7 @@ Debug_glXGetFBConfigFromVisualSGIX(Display* dpy, XVisualInfo* visualInfo) {
GL_SERVICE_LOG("glXGetFBConfigFromVisualSGIX"
<< "(" << static_cast<const void*>(dpy) << ", "
<< static_cast<const void*>(visualInfo) << ")");
+ DCHECK(g_driver_glx.debug_fn.glXGetFBConfigFromVisualSGIXFn != nullptr);
GLXFBConfig result =
g_driver_glx.debug_fn.glXGetFBConfigFromVisualSGIXFn(dpy, visualInfo);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -494,6 +519,7 @@ static GLXFBConfig* GL_BINDING_CALL Debug_glXGetFBConfigs(Display* dpy,
GL_SERVICE_LOG("glXGetFBConfigs"
<< "(" << static_cast<const void*>(dpy) << ", " << screen
<< ", " << static_cast<const void*>(nelements) << ")");
+ DCHECK(g_driver_glx.debug_fn.glXGetFBConfigsFn != nullptr);
GLXFBConfig* result =
g_driver_glx.debug_fn.glXGetFBConfigsFn(dpy, screen, nelements);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -508,6 +534,7 @@ static bool GL_BINDING_CALL Debug_glXGetMscRateOML(Display* dpy,
<< "(" << static_cast<const void*>(dpy) << ", " << drawable
<< ", " << static_cast<const void*>(numerator) << ", "
<< static_cast<const void*>(denominator) << ")");
+ DCHECK(g_driver_glx.debug_fn.glXGetMscRateOMLFn != nullptr);
bool result = g_driver_glx.debug_fn.glXGetMscRateOMLFn(
dpy, drawable, numerator, denominator);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -520,6 +547,7 @@ static void GL_BINDING_CALL Debug_glXGetSelectedEvent(Display* dpy,
GL_SERVICE_LOG("glXGetSelectedEvent"
<< "(" << static_cast<const void*>(dpy) << ", " << drawable
<< ", " << static_cast<const void*>(mask) << ")");
+ DCHECK(g_driver_glx.debug_fn.glXGetSelectedEventFn != nullptr);
g_driver_glx.debug_fn.glXGetSelectedEventFn(dpy, drawable, mask);
}
@@ -533,6 +561,7 @@ static bool GL_BINDING_CALL Debug_glXGetSyncValuesOML(Display* dpy,
<< ", " << static_cast<const void*>(ust) << ", "
<< static_cast<const void*>(msc) << ", "
<< static_cast<const void*>(sbc) << ")");
+ DCHECK(g_driver_glx.debug_fn.glXGetSyncValuesOMLFn != nullptr);
bool result =
g_driver_glx.debug_fn.glXGetSyncValuesOMLFn(dpy, drawable, ust, msc, sbc);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -544,6 +573,7 @@ Debug_glXGetVisualFromFBConfig(Display* dpy, GLXFBConfig config) {
GL_SERVICE_LOG("glXGetVisualFromFBConfig"
<< "(" << static_cast<const void*>(dpy) << ", " << config
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXGetVisualFromFBConfigFn != nullptr);
XVisualInfo* result =
g_driver_glx.debug_fn.glXGetVisualFromFBConfigFn(dpy, config);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -553,6 +583,7 @@ Debug_glXGetVisualFromFBConfig(Display* dpy, GLXFBConfig config) {
static int GL_BINDING_CALL Debug_glXIsDirect(Display* dpy, GLXContext ctx) {
GL_SERVICE_LOG("glXIsDirect"
<< "(" << static_cast<const void*>(dpy) << ", " << ctx << ")");
+ DCHECK(g_driver_glx.debug_fn.glXIsDirectFn != nullptr);
int result = g_driver_glx.debug_fn.glXIsDirectFn(dpy, ctx);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -565,6 +596,7 @@ static int GL_BINDING_CALL Debug_glXMakeContextCurrent(Display* dpy,
GL_SERVICE_LOG("glXMakeContextCurrent"
<< "(" << static_cast<const void*>(dpy) << ", " << draw << ", "
<< read << ", " << ctx << ")");
+ DCHECK(g_driver_glx.debug_fn.glXMakeContextCurrentFn != nullptr);
int result =
g_driver_glx.debug_fn.glXMakeContextCurrentFn(dpy, draw, read, ctx);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -577,6 +609,7 @@ static int GL_BINDING_CALL Debug_glXMakeCurrent(Display* dpy,
GL_SERVICE_LOG("glXMakeCurrent"
<< "(" << static_cast<const void*>(dpy) << ", " << drawable
<< ", " << ctx << ")");
+ DCHECK(g_driver_glx.debug_fn.glXMakeCurrentFn != nullptr);
int result = g_driver_glx.debug_fn.glXMakeCurrentFn(dpy, drawable, ctx);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -590,6 +623,7 @@ static int GL_BINDING_CALL Debug_glXQueryContext(Display* dpy,
<< "(" << static_cast<const void*>(dpy) << ", " << ctx << ", "
<< attribute << ", " << static_cast<const void*>(value)
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXQueryContextFn != nullptr);
int result =
g_driver_glx.debug_fn.glXQueryContextFn(dpy, ctx, attribute, value);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -604,6 +638,7 @@ static void GL_BINDING_CALL Debug_glXQueryDrawable(Display* dpy,
<< "(" << static_cast<const void*>(dpy) << ", " << draw << ", "
<< attribute << ", " << static_cast<const void*>(value)
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXQueryDrawableFn != nullptr);
g_driver_glx.debug_fn.glXQueryDrawableFn(dpy, draw, attribute, value);
}
@@ -614,6 +649,7 @@ static int GL_BINDING_CALL Debug_glXQueryExtension(Display* dpy,
<< "(" << static_cast<const void*>(dpy) << ", "
<< static_cast<const void*>(errorb) << ", "
<< static_cast<const void*>(event) << ")");
+ DCHECK(g_driver_glx.debug_fn.glXQueryExtensionFn != nullptr);
int result = g_driver_glx.debug_fn.glXQueryExtensionFn(dpy, errorb, event);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -624,6 +660,7 @@ static const char* GL_BINDING_CALL Debug_glXQueryExtensionsString(Display* dpy,
GL_SERVICE_LOG("glXQueryExtensionsString"
<< "(" << static_cast<const void*>(dpy) << ", " << screen
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXQueryExtensionsStringFn != nullptr);
const char* result =
g_driver_glx.debug_fn.glXQueryExtensionsStringFn(dpy, screen);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -636,6 +673,7 @@ static const char* GL_BINDING_CALL Debug_glXQueryServerString(Display* dpy,
GL_SERVICE_LOG("glXQueryServerString"
<< "(" << static_cast<const void*>(dpy) << ", " << screen
<< ", " << name << ")");
+ DCHECK(g_driver_glx.debug_fn.glXQueryServerStringFn != nullptr);
const char* result =
g_driver_glx.debug_fn.glXQueryServerStringFn(dpy, screen, name);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -649,6 +687,7 @@ static int GL_BINDING_CALL Debug_glXQueryVersion(Display* dpy,
<< "(" << static_cast<const void*>(dpy) << ", "
<< static_cast<const void*>(maj) << ", "
<< static_cast<const void*>(min) << ")");
+ DCHECK(g_driver_glx.debug_fn.glXQueryVersionFn != nullptr);
int result = g_driver_glx.debug_fn.glXQueryVersionFn(dpy, maj, min);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -660,6 +699,7 @@ static void GL_BINDING_CALL Debug_glXReleaseTexImageEXT(Display* dpy,
GL_SERVICE_LOG("glXReleaseTexImageEXT"
<< "(" << static_cast<const void*>(dpy) << ", " << drawable
<< ", " << buffer << ")");
+ DCHECK(g_driver_glx.debug_fn.glXReleaseTexImageEXTFn != nullptr);
g_driver_glx.debug_fn.glXReleaseTexImageEXTFn(dpy, drawable, buffer);
}
@@ -669,6 +709,7 @@ static void GL_BINDING_CALL Debug_glXSelectEvent(Display* dpy,
GL_SERVICE_LOG("glXSelectEvent"
<< "(" << static_cast<const void*>(dpy) << ", " << drawable
<< ", " << mask << ")");
+ DCHECK(g_driver_glx.debug_fn.glXSelectEventFn != nullptr);
g_driver_glx.debug_fn.glXSelectEventFn(dpy, drawable, mask);
}
@@ -677,6 +718,7 @@ static void GL_BINDING_CALL Debug_glXSwapBuffers(Display* dpy,
GL_SERVICE_LOG("glXSwapBuffers"
<< "(" << static_cast<const void*>(dpy) << ", " << drawable
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXSwapBuffersFn != nullptr);
g_driver_glx.debug_fn.glXSwapBuffersFn(dpy, drawable);
}
@@ -686,12 +728,14 @@ static void GL_BINDING_CALL Debug_glXSwapIntervalEXT(Display* dpy,
GL_SERVICE_LOG("glXSwapIntervalEXT"
<< "(" << static_cast<const void*>(dpy) << ", " << drawable
<< ", " << interval << ")");
+ DCHECK(g_driver_glx.debug_fn.glXSwapIntervalEXTFn != nullptr);
g_driver_glx.debug_fn.glXSwapIntervalEXTFn(dpy, drawable, interval);
}
static void GL_BINDING_CALL Debug_glXSwapIntervalMESA(unsigned int interval) {
GL_SERVICE_LOG("glXSwapIntervalMESA"
<< "(" << interval << ")");
+ DCHECK(g_driver_glx.debug_fn.glXSwapIntervalMESAFn != nullptr);
g_driver_glx.debug_fn.glXSwapIntervalMESAFn(interval);
}
@@ -702,6 +746,7 @@ static void GL_BINDING_CALL Debug_glXUseXFont(Font font,
GL_SERVICE_LOG("glXUseXFont"
<< "(" << font << ", " << first << ", " << count << ", "
<< list << ")");
+ DCHECK(g_driver_glx.debug_fn.glXUseXFontFn != nullptr);
g_driver_glx.debug_fn.glXUseXFontFn(font, first, count, list);
}
@@ -709,6 +754,7 @@ static void GL_BINDING_CALL Debug_glXWaitGL(void) {
GL_SERVICE_LOG("glXWaitGL"
<< "("
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXWaitGLFn != nullptr);
g_driver_glx.debug_fn.glXWaitGLFn();
}
@@ -718,6 +764,7 @@ static int GL_BINDING_CALL Debug_glXWaitVideoSyncSGI(int divisor,
GL_SERVICE_LOG("glXWaitVideoSyncSGI"
<< "(" << divisor << ", " << remainder << ", "
<< static_cast<const void*>(count) << ")");
+ DCHECK(g_driver_glx.debug_fn.glXWaitVideoSyncSGIFn != nullptr);
int result =
g_driver_glx.debug_fn.glXWaitVideoSyncSGIFn(divisor, remainder, count);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -728,6 +775,7 @@ static void GL_BINDING_CALL Debug_glXWaitX(void) {
GL_SERVICE_LOG("glXWaitX"
<< "("
<< ")");
+ DCHECK(g_driver_glx.debug_fn.glXWaitXFn != nullptr);
g_driver_glx.debug_fn.glXWaitXFn();
}
} // extern "C"
diff --git a/ui/gl/gl_bindings_autogen_osmesa.cc b/ui/gl/gl_bindings_autogen_osmesa.cc
index 27d31e2..1f03fe3 100644
--- a/ui/gl/gl_bindings_autogen_osmesa.cc
+++ b/ui/gl/gl_bindings_autogen_osmesa.cc
@@ -62,6 +62,7 @@ extern "C" {
static void GL_BINDING_CALL Debug_OSMesaColorClamp(GLboolean enable) {
GL_SERVICE_LOG("OSMesaColorClamp"
<< "(" << GLEnums::GetStringBool(enable) << ")");
+ DCHECK(g_driver_osmesa.debug_fn.OSMesaColorClampFn != nullptr);
g_driver_osmesa.debug_fn.OSMesaColorClampFn(enable);
}
@@ -70,6 +71,7 @@ Debug_OSMesaCreateContext(GLenum format, OSMesaContext sharelist) {
GL_SERVICE_LOG("OSMesaCreateContext"
<< "(" << GLEnums::GetStringEnum(format) << ", " << sharelist
<< ")");
+ DCHECK(g_driver_osmesa.debug_fn.OSMesaCreateContextFn != nullptr);
OSMesaContext result =
g_driver_osmesa.debug_fn.OSMesaCreateContextFn(format, sharelist);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -86,6 +88,7 @@ Debug_OSMesaCreateContextExt(GLenum format,
<< "(" << GLEnums::GetStringEnum(format) << ", " << depthBits
<< ", " << stencilBits << ", " << accumBits << ", "
<< sharelist << ")");
+ DCHECK(g_driver_osmesa.debug_fn.OSMesaCreateContextExtFn != nullptr);
OSMesaContext result = g_driver_osmesa.debug_fn.OSMesaCreateContextExtFn(
format, depthBits, stencilBits, accumBits, sharelist);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -95,6 +98,7 @@ Debug_OSMesaCreateContextExt(GLenum format,
static void GL_BINDING_CALL Debug_OSMesaDestroyContext(OSMesaContext ctx) {
GL_SERVICE_LOG("OSMesaDestroyContext"
<< "(" << ctx << ")");
+ DCHECK(g_driver_osmesa.debug_fn.OSMesaDestroyContextFn != nullptr);
g_driver_osmesa.debug_fn.OSMesaDestroyContextFn(ctx);
}
@@ -107,6 +111,7 @@ static GLboolean GL_BINDING_CALL Debug_OSMesaGetColorBuffer(OSMesaContext c,
<< "(" << c << ", " << static_cast<const void*>(width) << ", "
<< static_cast<const void*>(height) << ", "
<< static_cast<const void*>(format) << ", " << buffer << ")");
+ DCHECK(g_driver_osmesa.debug_fn.OSMesaGetColorBufferFn != nullptr);
GLboolean result = g_driver_osmesa.debug_fn.OSMesaGetColorBufferFn(
c, width, height, format, buffer);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -117,6 +122,7 @@ static OSMesaContext GL_BINDING_CALL Debug_OSMesaGetCurrentContext(void) {
GL_SERVICE_LOG("OSMesaGetCurrentContext"
<< "("
<< ")");
+ DCHECK(g_driver_osmesa.debug_fn.OSMesaGetCurrentContextFn != nullptr);
OSMesaContext result = g_driver_osmesa.debug_fn.OSMesaGetCurrentContextFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -133,6 +139,7 @@ Debug_OSMesaGetDepthBuffer(OSMesaContext c,
<< static_cast<const void*>(height) << ", "
<< static_cast<const void*>(bytesPerValue) << ", " << buffer
<< ")");
+ DCHECK(g_driver_osmesa.debug_fn.OSMesaGetDepthBufferFn != nullptr);
GLboolean result = g_driver_osmesa.debug_fn.OSMesaGetDepthBufferFn(
c, width, height, bytesPerValue, buffer);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -143,6 +150,7 @@ static void GL_BINDING_CALL Debug_OSMesaGetIntegerv(GLint pname, GLint* value) {
GL_SERVICE_LOG("OSMesaGetIntegerv"
<< "(" << pname << ", " << static_cast<const void*>(value)
<< ")");
+ DCHECK(g_driver_osmesa.debug_fn.OSMesaGetIntegervFn != nullptr);
g_driver_osmesa.debug_fn.OSMesaGetIntegervFn(pname, value);
}
@@ -150,6 +158,7 @@ static OSMESAproc GL_BINDING_CALL
Debug_OSMesaGetProcAddress(const char* funcName) {
GL_SERVICE_LOG("OSMesaGetProcAddress"
<< "(" << funcName << ")");
+ DCHECK(g_driver_osmesa.debug_fn.OSMesaGetProcAddressFn != nullptr);
OSMESAproc result = g_driver_osmesa.debug_fn.OSMesaGetProcAddressFn(funcName);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -164,6 +173,7 @@ static GLboolean GL_BINDING_CALL Debug_OSMesaMakeCurrent(OSMesaContext ctx,
<< "(" << ctx << ", " << static_cast<const void*>(buffer)
<< ", " << GLEnums::GetStringEnum(type) << ", " << width
<< ", " << height << ")");
+ DCHECK(g_driver_osmesa.debug_fn.OSMesaMakeCurrentFn != nullptr);
GLboolean result = g_driver_osmesa.debug_fn.OSMesaMakeCurrentFn(
ctx, buffer, type, width, height);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -173,6 +183,7 @@ static GLboolean GL_BINDING_CALL Debug_OSMesaMakeCurrent(OSMesaContext ctx,
static void GL_BINDING_CALL Debug_OSMesaPixelStore(GLint pname, GLint value) {
GL_SERVICE_LOG("OSMesaPixelStore"
<< "(" << pname << ", " << value << ")");
+ DCHECK(g_driver_osmesa.debug_fn.OSMesaPixelStoreFn != nullptr);
g_driver_osmesa.debug_fn.OSMesaPixelStoreFn(pname, value);
}
} // extern "C"
diff --git a/ui/gl/gl_bindings_autogen_wgl.cc b/ui/gl/gl_bindings_autogen_wgl.cc
index f1bcb2f..4791424 100644
--- a/ui/gl/gl_bindings_autogen_wgl.cc
+++ b/ui/gl/gl_bindings_autogen_wgl.cc
@@ -135,6 +135,7 @@ Debug_wglChoosePixelFormatARB(HDC dc,
<< static_cast<const void*>(float_attrib_list) << ", "
<< max_formats << ", " << static_cast<const void*>(formats)
<< ", " << static_cast<const void*>(num_formats) << ")");
+ DCHECK(g_driver_wgl.debug_fn.wglChoosePixelFormatARBFn != nullptr);
BOOL result = g_driver_wgl.debug_fn.wglChoosePixelFormatARBFn(
dc, int_attrib_list, float_attrib_list, max_formats, formats,
num_formats);
@@ -147,6 +148,7 @@ static BOOL GL_BINDING_CALL Debug_wglCopyContext(HGLRC hglrcSrc,
UINT mask) {
GL_SERVICE_LOG("wglCopyContext"
<< "(" << hglrcSrc << ", " << hglrcDst << ", " << mask << ")");
+ DCHECK(g_driver_wgl.debug_fn.wglCopyContextFn != nullptr);
BOOL result =
g_driver_wgl.debug_fn.wglCopyContextFn(hglrcSrc, hglrcDst, mask);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -156,6 +158,7 @@ static BOOL GL_BINDING_CALL Debug_wglCopyContext(HGLRC hglrcSrc,
static HGLRC GL_BINDING_CALL Debug_wglCreateContext(HDC hdc) {
GL_SERVICE_LOG("wglCreateContext"
<< "(" << hdc << ")");
+ DCHECK(g_driver_wgl.debug_fn.wglCreateContextFn != nullptr);
HGLRC result = g_driver_wgl.debug_fn.wglCreateContextFn(hdc);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -165,6 +168,7 @@ static HGLRC GL_BINDING_CALL Debug_wglCreateLayerContext(HDC hdc,
int iLayerPlane) {
GL_SERVICE_LOG("wglCreateLayerContext"
<< "(" << hdc << ", " << iLayerPlane << ")");
+ DCHECK(g_driver_wgl.debug_fn.wglCreateLayerContextFn != nullptr);
HGLRC result =
g_driver_wgl.debug_fn.wglCreateLayerContextFn(hdc, iLayerPlane);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -181,6 +185,7 @@ Debug_wglCreatePbufferARB(HDC hDC,
<< "(" << hDC << ", " << iPixelFormat << ", " << iWidth << ", "
<< iHeight << ", " << static_cast<const void*>(piAttribList)
<< ")");
+ DCHECK(g_driver_wgl.debug_fn.wglCreatePbufferARBFn != nullptr);
HPBUFFERARB result = g_driver_wgl.debug_fn.wglCreatePbufferARBFn(
hDC, iPixelFormat, iWidth, iHeight, piAttribList);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -190,6 +195,7 @@ Debug_wglCreatePbufferARB(HDC hDC,
static BOOL GL_BINDING_CALL Debug_wglDeleteContext(HGLRC hglrc) {
GL_SERVICE_LOG("wglDeleteContext"
<< "(" << hglrc << ")");
+ DCHECK(g_driver_wgl.debug_fn.wglDeleteContextFn != nullptr);
BOOL result = g_driver_wgl.debug_fn.wglDeleteContextFn(hglrc);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -198,6 +204,7 @@ static BOOL GL_BINDING_CALL Debug_wglDeleteContext(HGLRC hglrc) {
static BOOL GL_BINDING_CALL Debug_wglDestroyPbufferARB(HPBUFFERARB hPbuffer) {
GL_SERVICE_LOG("wglDestroyPbufferARB"
<< "(" << hPbuffer << ")");
+ DCHECK(g_driver_wgl.debug_fn.wglDestroyPbufferARBFn != nullptr);
BOOL result = g_driver_wgl.debug_fn.wglDestroyPbufferARBFn(hPbuffer);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -207,6 +214,7 @@ static HGLRC GL_BINDING_CALL Debug_wglGetCurrentContext() {
GL_SERVICE_LOG("wglGetCurrentContext"
<< "("
<< ")");
+ DCHECK(g_driver_wgl.debug_fn.wglGetCurrentContextFn != nullptr);
HGLRC result = g_driver_wgl.debug_fn.wglGetCurrentContextFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -216,6 +224,7 @@ static HDC GL_BINDING_CALL Debug_wglGetCurrentDC() {
GL_SERVICE_LOG("wglGetCurrentDC"
<< "("
<< ")");
+ DCHECK(g_driver_wgl.debug_fn.wglGetCurrentDCFn != nullptr);
HDC result = g_driver_wgl.debug_fn.wglGetCurrentDCFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -224,6 +233,7 @@ static HDC GL_BINDING_CALL Debug_wglGetCurrentDC() {
static const char* GL_BINDING_CALL Debug_wglGetExtensionsStringARB(HDC hDC) {
GL_SERVICE_LOG("wglGetExtensionsStringARB"
<< "(" << hDC << ")");
+ DCHECK(g_driver_wgl.debug_fn.wglGetExtensionsStringARBFn != nullptr);
const char* result = g_driver_wgl.debug_fn.wglGetExtensionsStringARBFn(hDC);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -233,6 +243,7 @@ static const char* GL_BINDING_CALL Debug_wglGetExtensionsStringEXT() {
GL_SERVICE_LOG("wglGetExtensionsStringEXT"
<< "("
<< ")");
+ DCHECK(g_driver_wgl.debug_fn.wglGetExtensionsStringEXTFn != nullptr);
const char* result = g_driver_wgl.debug_fn.wglGetExtensionsStringEXTFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -241,6 +252,7 @@ static const char* GL_BINDING_CALL Debug_wglGetExtensionsStringEXT() {
static HDC GL_BINDING_CALL Debug_wglGetPbufferDCARB(HPBUFFERARB hPbuffer) {
GL_SERVICE_LOG("wglGetPbufferDCARB"
<< "(" << hPbuffer << ")");
+ DCHECK(g_driver_wgl.debug_fn.wglGetPbufferDCARBFn != nullptr);
HDC result = g_driver_wgl.debug_fn.wglGetPbufferDCARBFn(hPbuffer);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -249,6 +261,7 @@ static HDC GL_BINDING_CALL Debug_wglGetPbufferDCARB(HPBUFFERARB hPbuffer) {
static BOOL GL_BINDING_CALL Debug_wglMakeCurrent(HDC hdc, HGLRC hglrc) {
GL_SERVICE_LOG("wglMakeCurrent"
<< "(" << hdc << ", " << hglrc << ")");
+ DCHECK(g_driver_wgl.debug_fn.wglMakeCurrentFn != nullptr);
BOOL result = g_driver_wgl.debug_fn.wglMakeCurrentFn(hdc, hglrc);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -260,6 +273,7 @@ static BOOL GL_BINDING_CALL Debug_wglQueryPbufferARB(HPBUFFERARB hPbuffer,
GL_SERVICE_LOG("wglQueryPbufferARB"
<< "(" << hPbuffer << ", " << iAttribute << ", "
<< static_cast<const void*>(piValue) << ")");
+ DCHECK(g_driver_wgl.debug_fn.wglQueryPbufferARBFn != nullptr);
BOOL result =
g_driver_wgl.debug_fn.wglQueryPbufferARBFn(hPbuffer, iAttribute, piValue);
GL_SERVICE_LOG("GL_RESULT: " << result);
@@ -270,6 +284,7 @@ static int GL_BINDING_CALL Debug_wglReleasePbufferDCARB(HPBUFFERARB hPbuffer,
HDC hDC) {
GL_SERVICE_LOG("wglReleasePbufferDCARB"
<< "(" << hPbuffer << ", " << hDC << ")");
+ DCHECK(g_driver_wgl.debug_fn.wglReleasePbufferDCARBFn != nullptr);
int result = g_driver_wgl.debug_fn.wglReleasePbufferDCARBFn(hPbuffer, hDC);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -278,6 +293,7 @@ static int GL_BINDING_CALL Debug_wglReleasePbufferDCARB(HPBUFFERARB hPbuffer,
static BOOL GL_BINDING_CALL Debug_wglShareLists(HGLRC hglrc1, HGLRC hglrc2) {
GL_SERVICE_LOG("wglShareLists"
<< "(" << hglrc1 << ", " << hglrc2 << ")");
+ DCHECK(g_driver_wgl.debug_fn.wglShareListsFn != nullptr);
BOOL result = g_driver_wgl.debug_fn.wglShareListsFn(hglrc1, hglrc2);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -286,6 +302,7 @@ static BOOL GL_BINDING_CALL Debug_wglShareLists(HGLRC hglrc1, HGLRC hglrc2) {
static BOOL GL_BINDING_CALL Debug_wglSwapIntervalEXT(int interval) {
GL_SERVICE_LOG("wglSwapIntervalEXT"
<< "(" << interval << ")");
+ DCHECK(g_driver_wgl.debug_fn.wglSwapIntervalEXTFn != nullptr);
BOOL result = g_driver_wgl.debug_fn.wglSwapIntervalEXTFn(interval);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
@@ -294,6 +311,7 @@ static BOOL GL_BINDING_CALL Debug_wglSwapIntervalEXT(int interval) {
static BOOL GL_BINDING_CALL Debug_wglSwapLayerBuffers(HDC hdc, UINT fuPlanes) {
GL_SERVICE_LOG("wglSwapLayerBuffers"
<< "(" << hdc << ", " << fuPlanes << ")");
+ DCHECK(g_driver_wgl.debug_fn.wglSwapLayerBuffersFn != nullptr);
BOOL result = g_driver_wgl.debug_fn.wglSwapLayerBuffersFn(hdc, fuPlanes);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;