Yay, it's working! Now I'll test OpenGL

This commit is contained in:
pelya
2010-05-17 18:45:27 +03:00
parent 4059cb46f1
commit a2b164f268

View File

@@ -151,10 +151,9 @@ class DemoRenderer extends GLSurfaceView_SDL.Renderer {
nativeInit(); // Calls main() and never returns, hehe - we'll call eglSwapBuffers() from native code
}
public int swapBuffers() // Called from native code, returns 1 on success, 0 when GL context lost (user put app to background)
{
System.out.println("Java: swapBuffers() called");
return super.SwapBuffers() ? 1 : 0;
}