Skip to content

Commit

Permalink
Merge pull request #17118 from hrydgard/gl-format-build-fix
Browse files Browse the repository at this point in the history
OpenGL: Try a different way to exclude desktop tex compression formats in build
  • Loading branch information
hrydgard committed Mar 14, 2023
2 parents 4de789b + c6e0027 commit 42aa5f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Common/GPU/OpenGL/DataFormatGL.cpp
Expand Up @@ -86,7 +86,7 @@ bool Thin3DFormatToGLFormatAndType(DataFormat fmt, GLuint &internalFormat, GLuin
alignment = 16;
break;

#if PPSSPP_PLATFORM(WINDOWS)
#ifndef USING_GLES2
case DataFormat::BC1_RGBA_UNORM_BLOCK:
internalFormat = GL_COMPRESSED_RGB_S3TC_DXT1_EXT;
format = GL_RGB;
Expand Down
4 changes: 1 addition & 3 deletions Common/GPU/OpenGL/GLFeatures.cpp
Expand Up @@ -593,10 +593,8 @@ bool CheckGLExtensions() {
switch (compressedFormats[i]) {
case GL_COMPRESSED_RGB8_ETC2: gl_extensions.supportsETC2 = true; break;
case GL_COMPRESSED_RGBA_ASTC_4x4_KHR: gl_extensions.supportsASTC = true; break;
#if !PPSSPP_PLATFORM(IOS) && !PPSSPP_PLATFORM(MAC)
#ifndef USING_GLES2
case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: gl_extensions.supportsBC123 = true; break;
#endif
#if PPSSPP_PLATFORM(WINDOWS)
case GL_COMPRESSED_RGBA_BPTC_UNORM: gl_extensions.supportsBC7 = true; break;
#endif
}
Expand Down

0 comments on commit 42aa5f0

Please sign in to comment.