Skip to content

Commit

Permalink
gl init
Browse files Browse the repository at this point in the history
  • Loading branch information
levinli303 committed Mar 31, 2020
1 parent 4d42434 commit 318c1f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ add_definitions(-DNO_TTF)
add_definitions(-DENABLE_NLS)
add_definitions(-DUSE_SPICE)
add_definitions(-DEIGEN_NO_DEBUG)
add_definitions(-DNO_GL_INIT)

include_directories(
${CMAKE_SOURCE_DIR}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/cpp/dependency
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ class MainActivity : AppCompatActivity(),
AppStatusReporter.shared().updateStatus("Loading library...")
GlobalScope.launch(Dispatchers.IO) {
System.loadLibrary("celestia")
CelestiaAppCore.initGL()
withContext(Dispatchers.Main) {
loadLibrarySuccess()
}
Expand Down

0 comments on commit 318c1f6

Please sign in to comment.