Skip to content

Commit

Permalink
Use low resolution texture also on Windows
Browse files Browse the repository at this point in the history
Correction to fix PX4#84
  • Loading branch information
copterspace committed Oct 8, 2021
1 parent 0a5a8c6 commit 9ad57eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/me/drton/jmavsim/Visualizer3D.java
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ private void createEnvironment() {
String driverVendor = (String) propMap.get("native.vendor");
// The VMware graphics driver has a bug, where the large sky texture just shows up white,
// without any other errors. The reported maximum texture size is not useful either, it's 16384.
if (driverVendor.equals("VMware, Inc.")) {
String OS = System.getProperty("os.name").toLowerCase(); // Windows also does not display hi resolution texture correctly
if (driverVendor.equals("VMware, Inc.") || (OS.indexOf("win") >= 0)) {
tex = loadTexture(TEX_DIR + SKY_TEXTURE_LOW_RES);
} else {
tex = loadTexture(TEX_DIR + SKY_TEXTURE);
Expand Down

0 comments on commit 9ad57eb

Please sign in to comment.