Trying opengl for rendering

Signed-off-by: Priyank Shankar <shankarpriyank312002@gmail.com>
This commit is contained in:
Priyank Shankar 2022-07-11 14:25:57 +05:30
parent 6c76705265
commit 12c540682a
3 changed files with 14 additions and 2 deletions

View file

@ -91,6 +91,18 @@ public class HelloWorldScreen extends Screen implements SurfaceCallback
{
Log.e("arePlatformAndCoreInitialized()", String.valueOf(cat.arePlatformAndCoreInitialized()));
Log.e("Draw", "Rendering Should be done successfully?");
try
{
Log.e("Attcing Surafce", "!!!");
MapFragment.nativeAttachSurface(surface);
}
catch (Exception e)
{
e.printStackTrace();
}
MapFragment.nativeAttachSurface(surface);
surfaceContainer.getSurface().unlockCanvasAndPost(canvas);
}

View file

@ -39,7 +39,7 @@ public class SplashActivity extends AppCompatActivity implements BaseActivity
@Override
public void run()
{
init();
// init();
}
};

View file

@ -106,7 +106,7 @@ bool SupportManager::IsVulkanForbidden() const
bool forbidden;
if (!settings::Get(kVulkanForbidden, forbidden))
forbidden = false;
return forbidden;
return true;
}
bool SupportManager::IsVulkanForbidden(std::string const & deviceName,