Bläddra i källkod

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 år sedan
förälder
incheckning
4163940137
1 ändrade filer med 1 tillägg och 1 borttagningar
  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,
 					pixmap_attrs);
 	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()));
 		return NULL;
 	}