[client] egl: remove invalid call to glTexImage2D for dmabuf

GL_TEXTURE_EXTERNAL_OES is not a valid target for glTexImage2D and there
is no need to "create" the textures as this is done during import by
eglCreateImage
This commit is contained in:
Geoffrey McRae
2025-08-29 19:25:39 +10:00
parent 05bf816b45
commit f8f05c36b8

View File

@@ -141,22 +141,8 @@ static bool texDMABUFSetup(EGL_Texture * texture)
egl_texDMABUFCleanup(texture);
glGenTextures(parent->texCount, parent->tex);
for(int i = 0; i < parent->texCount; ++i)
{
glBindTexture(GL_TEXTURE_EXTERNAL_OES, parent->tex[i]);
glTexImage2D(GL_TEXTURE_EXTERNAL_OES,
0,
texture->format.intFormat,
this->width,
texture->format.height,
0,
this->format,
texture->format.dataType,
NULL);
}
glBindTexture(GL_TEXTURE_EXTERNAL_OES, 0);
parent->rIndex = -1;
return true;
}