summaryrefslogtreecommitdiff
path: root/lib/mesa/src/glx/apple/apple_glx_pbuffer.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-02-24 01:57:18 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-02-24 01:57:18 +0000
commitb24b5b9049e889ee4eb39b565bcc8d48bd45ab48 (patch)
tree658ca4e6b41655f49463c85edbaeda48979c394c /lib/mesa/src/glx/apple/apple_glx_pbuffer.c
parent57768bbb154c2879d34ec20e401b19472e77aaf7 (diff)
Import Mesa 21.3.7
Diffstat (limited to 'lib/mesa/src/glx/apple/apple_glx_pbuffer.c')
-rw-r--r--lib/mesa/src/glx/apple/apple_glx_pbuffer.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/lib/mesa/src/glx/apple/apple_glx_pbuffer.c b/lib/mesa/src/glx/apple/apple_glx_pbuffer.c
index 8c94d2010..e97e29323 100644
--- a/lib/mesa/src/glx/apple/apple_glx_pbuffer.c
+++ b/lib/mesa/src/glx/apple/apple_glx_pbuffer.c
@@ -44,6 +44,7 @@
#include <stdlib.h>
#include <pthread.h>
#include <assert.h>
+#include "glxclient.h"
#include "apple_glx.h"
#include "glxconfig.h"
#include "apple_cgl.h"
@@ -210,10 +211,8 @@ get_max_size(int *widthresult, int *heightresult)
err = apple_cgl.choose_pixel_format(attr, &pfobj, &vsref);
if (kCGLNoError != err) {
- if (env_var_as_boolean("LIBGL_DIAGNOSTIC", false)) {
- printf("choose_pixel_format error in %s: %s\n", __func__,
- apple_cgl.error_string(err));
- }
+ DebugMessageF("choose_pixel_format error in %s: %s\n", __func__,
+ apple_cgl.error_string(err));
return true;
}
@@ -222,10 +221,8 @@ get_max_size(int *widthresult, int *heightresult)
err = apple_cgl.create_context(pfobj, NULL, &newcontext);
if (kCGLNoError != err) {
- if (env_var_as_boolean("LIBGL_DIAGNOSTIC", false)) {
- printf("create_context error in %s: %s\n", __func__,
- apple_cgl.error_string(err));
- }
+ DebugMessageF("create_context error in %s: %s\n", __func__,
+ apple_cgl.error_string(err));
apple_cgl.destroy_pixel_format(pfobj);
@@ -235,8 +232,8 @@ get_max_size(int *widthresult, int *heightresult)
err = apple_cgl.set_current_context(newcontext);
if (kCGLNoError != err) {
- printf("set_current_context error in %s: %s\n", __func__,
- apple_cgl.error_string(err));
+ DebugMessageF("set_current_context error in %s: %s\n", __func__,
+ apple_cgl.error_string(err));
return true;
}