mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 21:13:35 +00:00
Refactor shaders to use GLES3 syntax
Signed-off-by: renderexpert <expert@renderconsulting.co.uk>
This commit is contained in:
committed by
Konstantin Pastbin
parent
b23c2ba3e3
commit
897d7a253d
@@ -69,13 +69,7 @@ void ProgramManager::InitForOpenGL(ref_ptr<dp::GraphicsContext> context)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (dp::SupportManager::Instance().IsSamsungGoogleNexus())
|
||||
globalDefines.append("#define SAMSUNG_GOOGLE_NEXUS\n");
|
||||
|
||||
auto const apiVersion = context->GetApiVersion();
|
||||
if (apiVersion == dp::ApiVersion::OpenGLES3)
|
||||
globalDefines.append("#define GLES3\n");
|
||||
|
||||
m_pool = make_unique_dp<GLProgramPool>(apiVersion);
|
||||
ref_ptr<GLProgramPool> pool = make_ref(m_pool);
|
||||
pool->SetDefines(globalDefines);
|
||||
|
||||
Reference in New Issue
Block a user