Skip to content

Commit

Permalink
Fix < 1.13 panorama rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhduytran0 committed Aug 2, 2023
1 parent efaa8ff commit 8b9b86f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/libANGLE/es3_copy_conversion_table_autogen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ bool ValidES3CopyConversion(GLenum textureFormat, GLenum framebufferFormat)
{
case GL_BGRA_EXT:
return true;
case GL_RGBA:
return true;
default:
break;
}
Expand Down
6 changes: 4 additions & 2 deletions src/libANGLE/validationES1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
#include "libANGLE/queryutils.h"
#include "libANGLE/validationES.h"

#define ANGLE_VALIDATE_IS_GLES1(state, errors, entryPoint) \
// Hack(Pojav): allow callung ES1 functions in ES2 context for gl4es
#define ANGLE_VALIDATE_IS_GLES1(state, errors, entryPoint)
#define ANGLE_VALIDATE_IS_GLES1_REAL(state, errors, entryPoint) \
do \
{ \
if (state.getClientType() != EGL_OPENGL_API && state.getClientMajorVersion() > 1) \
Expand All @@ -27,7 +29,7 @@
} while (0)

#define ANGLE_VALIDATE_IS_GLES1_CONTEXT(context, entryPoint) \
ANGLE_VALIDATE_IS_GLES1(context->getPrivateState(), \
ANGLE_VALIDATE_IS_GLES1_REAL(context->getPrivateState(), \
context->getMutableErrorSetForValidation(), entryPoint)

namespace gl
Expand Down
1 change: 1 addition & 0 deletions src/libANGLE/validationES3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,7 @@ bool GetUnsizedEffectiveInternalFormatInfo(const InternalFormat &srcFormat,
{ GL_RGBA4, GL_RGBA, 1, 4, 1, 4, 1, 4, 1, 4 },
{ GL_RGB5_A1, GL_RGBA, 5, 5, 5, 5, 5, 5, 1, 1 },
{ GL_RGBA8, GL_RGBA, 5, 8, 5, 8, 5, 8, 5, 8 },
{ GL_RGBA8, GL_BGRA_EXT, 5, 8, 5, 8, 5, 8, 5, 8 },
};
// clang-format on

Expand Down

0 comments on commit 8b9b86f

Please sign in to comment.