mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
Changed render buffers format back to RGBA16F
Reverted a03b2ff48b
to fix issues with nVidia graphics on macOS
This commit is contained in:
parent
03d055a5ec
commit
47714509d6
1 changed files with 2 additions and 2 deletions
|
@ -274,7 +274,7 @@ void FGLRenderBuffers::CreateBloom(int width, int height)
|
|||
|
||||
GLuint FGLRenderBuffers::GetHdrFormat()
|
||||
{
|
||||
return ((gl.flags & RFL_NO_RGBA16F) != 0) ? GL_RGBA8 : GL_RGBA16;
|
||||
return ((gl.flags & RFL_NO_RGBA16F) != 0) ? GL_RGBA8 : GL_RGBA16F;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
@ -285,7 +285,7 @@ GLuint FGLRenderBuffers::GetHdrFormat()
|
|||
|
||||
GLuint FGLRenderBuffers::Create2DTexture(const FString &name, GLuint format, int width, int height)
|
||||
{
|
||||
GLuint type = (format == GL_RGBA16) ? GL_UNSIGNED_SHORT : GL_UNSIGNED_BYTE;
|
||||
GLuint type = (format == GL_RGBA16F) ? GL_FLOAT : GL_UNSIGNED_BYTE;
|
||||
GLuint handle = 0;
|
||||
glGenTextures(1, &handle);
|
||||
glBindTexture(GL_TEXTURE_2D, handle);
|
||||
|
|
Loading…
Reference in a new issue