mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-29 10:06:28 +00:00
[client] egl: improve DMA logic
This commit is contained in:
parent
38198b1477
commit
2c2008c981
@ -151,11 +151,9 @@ static void egl_texture_unmap(EGL_Texture * texture, uint8_t i)
|
|||||||
|
|
||||||
bool egl_texture_setup(EGL_Texture * texture, enum EGL_PixelFormat pixFmt, size_t width, size_t height, size_t stride, bool streaming, bool useDMA)
|
bool egl_texture_setup(EGL_Texture * texture, enum EGL_PixelFormat pixFmt, size_t width, size_t height, size_t stride, bool streaming, bool useDMA)
|
||||||
{
|
{
|
||||||
if (texture->streaming)
|
if (texture->streaming && !useDMA)
|
||||||
{
|
{
|
||||||
for(int i = 0; i < texture->textureCount; ++i)
|
for(int i = 0; i < texture->textureCount; ++i)
|
||||||
{
|
|
||||||
if (!useDMA)
|
|
||||||
{
|
{
|
||||||
egl_texture_unmap(texture, i);
|
egl_texture_unmap(texture, i);
|
||||||
if (texture->tex[i].hasPBO)
|
if (texture->tex[i].hasPBO)
|
||||||
@ -165,7 +163,6 @@ bool egl_texture_setup(EGL_Texture * texture, enum EGL_PixelFormat pixFmt, size_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
texture->pixFmt = pixFmt;
|
texture->pixFmt = pixFmt;
|
||||||
texture->width = width;
|
texture->width = width;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user