mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
[Drape] Remove GLES2-related code
Signed-off-by: renderexpert <expert@renderconsulting.co.uk>
This commit is contained in:
committed by
Konstantin Pastbin
parent
705c715356
commit
b23c2ba3e3
@@ -81,7 +81,7 @@ double getExactDPI(double contentScaleFactor)
|
||||
if (tempContext != nil)
|
||||
apiVersion = dp::ApiVersion::OpenGLES3;
|
||||
else
|
||||
apiVersion = dp::ApiVersion::OpenGLES2;
|
||||
CHECK(false, ("OpenGL ES3 is not supported"));
|
||||
}
|
||||
|
||||
return apiVersion;
|
||||
|
||||
@@ -17,20 +17,14 @@ iosOGLContext::iosOGLContext(CAEAGLLayer * layer, dp::ApiVersion apiVersion,
|
||||
, m_frameBufferId(0)
|
||||
, m_presentAvailable(true)
|
||||
{
|
||||
EAGLRenderingAPI api;
|
||||
if (m_apiVersion == dp::ApiVersion::OpenGLES3)
|
||||
api = kEAGLRenderingAPIOpenGLES3;
|
||||
else
|
||||
api = kEAGLRenderingAPIOpenGLES2;
|
||||
|
||||
if (contextToShareWith != NULL)
|
||||
{
|
||||
m_nativeContext = [[EAGLContext alloc] initWithAPI:api
|
||||
m_nativeContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES3
|
||||
sharegroup: contextToShareWith->m_nativeContext.sharegroup];
|
||||
}
|
||||
else
|
||||
{
|
||||
m_nativeContext = [[EAGLContext alloc] initWithAPI:api];
|
||||
m_nativeContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES3];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user