mirror of
https://github.com/processing/processing4.git
synced 2026-02-26 16:54:33 +01:00
fix endian check to avoid security exception
This commit is contained in:
@@ -85,19 +85,11 @@ public class PGraphicsGL extends PGraphics3 {
|
||||
protected IntBuffer pixelBuffer;
|
||||
|
||||
/**
|
||||
* Used in temporary calcuulations to avoid
|
||||
* reallocating during heavy renders
|
||||
*/
|
||||
//protected float[] calcColor = new float[4];
|
||||
|
||||
/**
|
||||
* true if the host system is big endian (PowerPC, MIPS, SPARC),
|
||||
* false if little endian (x86 Intel). This throws a security
|
||||
* exception in applets, though applets will need to be signed
|
||||
* for JOGL anyways. This is a bad solution, however.
|
||||
* Set to true if the host system is big endian (PowerPC, MIPS, SPARC),
|
||||
* false if little endian (x86 Intel for Mac or PC).
|
||||
*/
|
||||
static public boolean BIG_ENDIAN =
|
||||
System.getProperty("sun.cpu.endian").equals("big");
|
||||
ByteOrder.nativeOrder() == ByteOrder.BIG_ENDIAN;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user