mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[host/client] fix invalid initialization of RGBA16F
This commit is contained in:
parent
9c6bd888fd
commit
8a9f004ff6
@ -227,7 +227,7 @@ bool egl_texture_setup(EGL_Texture * texture, enum EGL_PixelFormat pixFmt, size_
|
||||
texture->planes[0][1] = height;
|
||||
texture->planes[0][2] = stride / 8;
|
||||
texture->offsets[0] = 0;
|
||||
texture->intFormat = GL_RGB16;
|
||||
texture->intFormat = GL_RGBA16F;
|
||||
texture->dataType = GL_FLOAT;
|
||||
texture->pboBufferSize = height * stride;
|
||||
break;
|
||||
|
@ -482,7 +482,8 @@ static bool dxgi_init()
|
||||
{
|
||||
DXGI_FORMAT_B8G8R8A8_UNORM,
|
||||
DXGI_FORMAT_R8G8B8A8_UNORM,
|
||||
DXGI_FORMAT_R10G10B10A2_UNORM
|
||||
DXGI_FORMAT_R10G10B10A2_UNORM,
|
||||
DXGI_FORMAT_R16G16B16A16_FLOAT
|
||||
};
|
||||
|
||||
// we try this twice in case we still get an error on re-initialization
|
||||
|
Loading…
Reference in New Issue
Block a user