summaryrefslogtreecommitdiffstats
path: root/src/newt/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-10-01 05:29:14 +0200
committerSven Gothel <[email protected]>2011-10-01 05:29:14 +0200
commit532abb435b1197515eab0616eb8bba5f1146cbac (patch)
tree73bcf0898fa567d23ae7718f9d447a4bd8bbd3a3 /src/newt/classes
parent5c2732160e9e7c34a881c83883759a9acacdfe36 (diff)
Android/EGL: dump all caps, write-back format
Diffstat (limited to 'src/newt/classes')
-rw-r--r--src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java b/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java
index 71d257ec5..b9301b05a 100644
--- a/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java
+++ b/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java
@@ -113,6 +113,12 @@ public class AndroidWindow extends jogamp.newt.WindowImpl implements Callback2 {
public static int getFormat(CapabilitiesImmutable rCaps) {
int fmt = PixelFormat.UNKNOWN;
+ /*
+ if(rCaps.getAlphaBits()==0) {
+ fmt = PixelFormat.RGB_565;
+ } else {
+ fmt = PixelFormat.RGBA_5551;
+ } */
if(rCaps.getRedBits()<=5 &&
rCaps.getGreenBits()<=6 &&
rCaps.getBlueBits()<=5 &&
@@ -186,7 +192,8 @@ public class AndroidWindow extends jogamp.newt.WindowImpl implements Callback2 {
@Override
protected void createNativeImpl() {
Log.d(MD.TAG, "createNativeImpl 0 - surfaceHandle 0x"+Long.toHexString(surfaceHandle)+
- ", "+x+"/"+y+" "+width+"x"+height);
+ ", "+x+"/"+y+" "+width+"x"+height+" - "+Thread.currentThread().getName());
+ Thread.dumpStack();
if(0!=getParentWindowHandle()) {
throw new NativeWindowException("Window parenting not supported (yet)");
}
@@ -212,7 +219,8 @@ public class AndroidWindow extends jogamp.newt.WindowImpl implements Callback2 {
", error 0x"+Integer.toHexString(EGL.eglGetError()));
}
Log.d(MD.TAG, "nativeVisualID 0x"+Integer.toHexString(nativeVisualID.get(0)));
- // JAU FIXME setSurfaceVisualID(surfaceHandle, nativeVisualID.get(0));
+ // JAU FIXME
+ setSurfaceVisualID0(surfaceHandle, nativeVisualID.get(0));
eglSurface = EGL.eglCreateWindowSurface(eglDevice.getHandle(), eglConfig.getNativeConfig(), surfaceHandle, null);
if (EGL.EGL_NO_SURFACE==eglSurface) {