mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 14:23:02 +01:00
Revert back to using GL_HALF_FLOAT (that is GL_HALF_FLOAT_OES)
This commit is contained in:
committed by
Бранимир Караџић
parent
43bd07f825
commit
3ad3227595
@@ -2336,7 +2336,7 @@ namespace bgfx { namespace gl
|
||||
{
|
||||
if (glVersion < 30)
|
||||
{
|
||||
setTextureFormat(TextureFormat::RGBA16F, GL_RGBA, GL_RGBA, GL_HALF_FLOAT_OES);
|
||||
setTextureFormat(TextureFormat::RGBA16F, GL_RGBA, GL_RGBA, GL_HALF_FLOAT); // Note: this is actually GL_HALF_FLOAT_OES and not GL_HALF_FLOAT if compiling for GLES target.
|
||||
setTextureFormat(TextureFormat::RGBA32F, GL_RGBA, GL_RGBA, GL_FLOAT);
|
||||
// internalFormat and format must match:
|
||||
// https://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexImage2D.xml
|
||||
|
||||
Reference in New Issue
Block a user