mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-09-02 21:30:52 +00:00
[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:
@@ -141,22 +141,8 @@ static bool texDMABUFSetup(EGL_Texture * texture)
|
|||||||
egl_texDMABUFCleanup(texture);
|
egl_texDMABUFCleanup(texture);
|
||||||
|
|
||||||
glGenTextures(parent->texCount, parent->tex);
|
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;
|
parent->rIndex = -1;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user