mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-04 06:06:17 +00:00
c/gl_client: Port to u_logging.
This commit is contained in:
parent
e3df2f9940
commit
bd107095fd
|
@ -27,6 +27,8 @@
|
||||||
|
|
||||||
#include "client/comp_gl_client.h"
|
#include "client/comp_gl_client.h"
|
||||||
|
|
||||||
|
#include "util/u_logging.h"
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -339,17 +341,16 @@ client_gl_swapchain_create(struct xrt_compositor *xc,
|
||||||
if (info->array_size > 1) {
|
if (info->array_size > 1) {
|
||||||
const char *version_str = (const char *)glGetString(GL_VERSION);
|
const char *version_str = (const char *)glGetString(GL_VERSION);
|
||||||
if (strstr(version_str, "OpenGL ES 2.") == version_str) {
|
if (strstr(version_str, "OpenGL ES 2.") == version_str) {
|
||||||
fprintf(stderr,
|
U_LOG_E(
|
||||||
"%s - only one array layer is supported with "
|
"Only one array layer is supported with OpenGL ES "
|
||||||
"OpenGL ES 2\n",
|
"2");
|
||||||
__func__);
|
|
||||||
return XRT_ERROR_OPENGL;
|
return XRT_ERROR_OPENGL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t vk_format = gl_format_to_vk(info->format);
|
int64_t vk_format = gl_format_to_vk(info->format);
|
||||||
if (vk_format == 0) {
|
if (vk_format == 0) {
|
||||||
fprintf(stderr, "%s - Invalid format!\n", __func__);
|
U_LOG_E("Invalid format!");
|
||||||
return XRT_ERROR_VULKAN;
|
return XRT_ERROR_VULKAN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue