Changed behaviour of isSupported() == false

This commit is contained in:
XDrake99 2017-02-02 18:47:03 +01:00
parent 1fe8733478
commit 169e721a39

View File

@ -126,8 +126,14 @@ public class GPUEngine implements org.warp.picalculator.gui.graphicengine.Graphi
@Override
public boolean isSupported() {
if (true) return false;
return GLProfile.isAvailable(GLProfile.GL2ES1);
boolean available = GLProfile.isAvailable(GLProfile.GL2ES1);
if (!available) {
System.err.println(GLProfile.glAvailabilityToString());
try {
Thread.sleep(1000);
} catch(Exception e) {}
}
return available;
}
}