Browse Source

libobs-opengl: Change log level for texture_from_pixmap

This function is expected to fail fairly often as it is the tool for
checking if windows are mapped and have a valid pixmap in the linux
capture plugin. So reduce this error to a debug message to avoid
spamming release builds.
Kurt Kartaltepe 3 years ago
parent
commit
4163940137
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libobs-opengl/gl-egl-common.c

+ 1 - 1
libobs-opengl/gl-egl-common.c

@@ -252,7 +252,7 @@ gl_egl_create_texture_from_pixmap(EGLDisplay egl_display, uint32_t width,
 					EGL_NATIVE_PIXMAP_KHR, pixmap,
 					EGL_NATIVE_PIXMAP_KHR, pixmap,
 					pixmap_attrs);
 					pixmap_attrs);
 	if (image == EGL_NO_IMAGE) {
 	if (image == EGL_NO_IMAGE) {
-		blog(LOG_ERROR, "Cannot create EGLImage: %s",
+		blog(LOG_DEBUG, "Cannot create EGLImage: %s",
 		     gl_egl_error_to_string(eglGetError()));
 		     gl_egl_error_to_string(eglGetError()));
 		return NULL;
 		return NULL;
 	}
 	}