mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-04-26 04:45:18 -06:00
move LatteDefaultShaders to opengl only and add ifdef opengl to latteshader_prepareseparableuniforms
This commit is contained in:
parent
4be30f6ef9
commit
e30558a503
@ -106,8 +106,6 @@ add_library(CemuCafe
|
||||
HW/Latte/Core/LatteCachedFBO.h
|
||||
HW/Latte/Core/LatteCommandProcessor.cpp
|
||||
HW/Latte/Core/LatteConst.h
|
||||
HW/Latte/Core/LatteDefaultShaders.cpp
|
||||
HW/Latte/Core/LatteDefaultShaders.h
|
||||
HW/Latte/Core/LatteDraw.h
|
||||
HW/Latte/Core/LatteGSCopyShaderParser.cpp
|
||||
HW/Latte/Core/Latte.h
|
||||
@ -497,6 +495,8 @@ add_library(CemuCafe
|
||||
|
||||
if (ENABLE_OPENGL)
|
||||
target_sources(CemuCafe PRIVATE
|
||||
HW/Latte/Core/LatteDefaultShaders.cpp
|
||||
HW/Latte/Core/LatteDefaultShaders.h
|
||||
HW/Latte/Renderer/OpenGL/CachedFBOGL.h
|
||||
HW/Latte/Renderer/OpenGL/LatteTextureGL.cpp
|
||||
HW/Latte/Renderer/OpenGL/LatteTextureGL.h
|
||||
|
||||
@ -26,6 +26,7 @@ bool gxShader_checkIfSuccessfullyLinked(GLuint glProgram)
|
||||
|
||||
void LatteShader_prepareSeparableUniforms(LatteDecompilerShader* shader)
|
||||
{
|
||||
#ifdef ENABLE_OPENGL
|
||||
if (g_renderer->GetType() != RendererAPI::OpenGL)
|
||||
return;
|
||||
|
||||
@ -65,6 +66,7 @@ void LatteShader_prepareSeparableUniforms(LatteDecompilerShader* shader)
|
||||
shader->uniform.list_ufTexRescale.push_back(entry);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
GLuint gpu7ShaderGLDepr_compileShader(const std::string& source, uint32_t type)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user