Trying opengl for rendering
Signed-off-by: Priyank Shankar <shankarpriyank312002@gmail.com>
This commit is contained in:
parent
6c76705265
commit
12c540682a
3 changed files with 14 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ public class SplashActivity extends AppCompatActivity implements BaseActivity
|
|||
@Override
|
||||
public void run()
|
||||
{
|
||||
init();
|
||||
// init();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Reference in a new issue