diff --git a/GLWallpaperTest/src/net/markguerra/android/glwallpapertest/GalleryActivity.java b/GLWallpaperTest/src/net/markguerra/android/glwallpapertest/GalleryActivity.java index f666a39..990a099 100644 --- a/GLWallpaperTest/src/net/markguerra/android/glwallpapertest/GalleryActivity.java +++ b/GLWallpaperTest/src/net/markguerra/android/glwallpapertest/GalleryActivity.java @@ -16,6 +16,15 @@ public void onCreate(Bundle savedInstanceState) { //Instantiate OpenGL drawing surface and hold a reference ViewGroup container = (ViewGroup)findViewById(R.id.container); glView = new GLSurfaceView(this); + + int redSize = 8; + int greenSize = 8; + int blueSize = 8; + int alphaSize = 8; + int depthSize = 16; + int stencilSize = 0; + glView.setEGLConfigChooser(redSize, greenSize, blueSize, alphaSize, depthSize, stencilSize); + MyRenderer renderer = new MyRenderer(); glView.setRenderer(renderer);