Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
- Try to fix rendering issues on 1.6.x
- Set GL4ES back to default fb mode
- Set orientation to landscape
  • Loading branch information
khanhduytran0 committed Jan 7, 2021
1 parent 4e6d3bd commit f7b8401
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions Natives/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,11 @@
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array><!--
Expand Down
2 changes: 1 addition & 1 deletion Natives/JavaLauncher.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ typedef jint JLI_Launch_func(int argc, char ** argv, /* main argc, argc */

int launchJVM(int argc, char *argv[]) {
debug("Beginning JVM launch\n");
setenv("LIBGL_FB", "2", 1);
// setenv("LIBGL_FB", "2", 1);
setenv("LIBGL_MIPMAP", "3", 1);
setenv("LIBGL_NORMALIZE", "1", 1);

Expand Down
4 changes: 2 additions & 2 deletions Natives/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ - (void)setupGL

int width_c = (int) roundf(screenBounds.size.width * screenScale);
int height_c = (int) roundf(screenBounds.size.height * screenScale);
glViewport(0, 0, width_c, height_c);

// glViewport(0, 0, width_c, height_c);
callback_AppDelegate_didFinishLaunching(width_c, height_c);
}

Expand Down

3 comments on commit f7b8401

@Sabigaming
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sabu

@Sabigaming
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sabi

@Sabigaming
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hai

Please sign in to comment.