[host/client] fix invalid initialization of RGBA16F

This commit is contained in:
Geoffrey McRae 2020-10-11 19:39:47 +11:00
parent 9c6bd888fd
commit 8a9f004ff6
2 changed files with 3 additions and 2 deletions

View file

@ -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;

View file

@ -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