|
|
@ -101,8 +101,9 @@ error:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void init_image_ext() {
|
|
|
|
static void init_image_ext() {
|
|
|
|
if (glEGLImageTargetTexture2DOES)
|
|
|
|
if (glEGLImageTargetTexture2DOES) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const char *exts = (const char*) glGetString(GL_EXTENSIONS);
|
|
|
|
const char *exts = (const char*) glGetString(GL_EXTENSIONS);
|
|
|
|
if (strstr(exts, "GL_OES_EGL_image_external")) {
|
|
|
|
if (strstr(exts, "GL_OES_EGL_image_external")) {
|
|
|
@ -177,7 +178,7 @@ static void draw_quad() {
|
|
|
|
|
|
|
|
|
|
|
|
static bool wlr_gles2_render_texture(struct wlr_renderer *_renderer,
|
|
|
|
static bool wlr_gles2_render_texture(struct wlr_renderer *_renderer,
|
|
|
|
struct wlr_texture *texture, const float (*matrix)[16]) {
|
|
|
|
struct wlr_texture *texture, const float (*matrix)[16]) {
|
|
|
|
if(!texture || !texture->valid) {
|
|
|
|
if (!texture || !texture->valid) {
|
|
|
|
wlr_log(L_ERROR, "attempt to render invalid texture");
|
|
|
|
wlr_log(L_ERROR, "attempt to render invalid texture");
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|