mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +00:00
[client] egl: no need to create textures when using DMA mode
This commit is contained in:
parent
42fef7a98d
commit
4c14797319
@ -241,6 +241,9 @@ bool egl_texture_setup(EGL_Texture * texture, enum EGL_PixelFormat pixFmt, size_
|
|||||||
glSamplerParameteri(texture->sampler, GL_TEXTURE_WRAP_T , GL_CLAMP_TO_EDGE);
|
glSamplerParameteri(texture->sampler, GL_TEXTURE_WRAP_T , GL_CLAMP_TO_EDGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (useDMA)
|
||||||
|
return true;
|
||||||
|
|
||||||
for(int i = 0; i < texture->textureCount; ++i)
|
for(int i = 0; i < texture->textureCount; ++i)
|
||||||
{
|
{
|
||||||
glBindTexture(GL_TEXTURE_2D, texture->tex[i].t);
|
glBindTexture(GL_TEXTURE_2D, texture->tex[i].t);
|
||||||
@ -249,7 +252,7 @@ bool egl_texture_setup(EGL_Texture * texture, enum EGL_PixelFormat pixFmt, size_
|
|||||||
}
|
}
|
||||||
glBindTexture(GL_TEXTURE_2D, 0);
|
glBindTexture(GL_TEXTURE_2D, 0);
|
||||||
|
|
||||||
if (!streaming || useDMA)
|
if (!streaming)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
for(int i = 0; i < texture->textureCount; ++i)
|
for(int i = 0; i < texture->textureCount; ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user