Hello, I'm developping a native application for android and I face to artefacts when rendering the scene. I can reproduce the issue with Java code.
While the following code running, I got a green screen. But If I move the status bar up and down over the screen, I see some red artefacts. Here a screenshot made with ddms : http://picasaweb.google.com/lh/photo/42bVsuIt8JldSIbPy8x2AA?feat=directlink The Acer liquid running Android 1.6. Can you check on other devices and tell me if you face the same issue ? I would like to know if it's an Android issue or an Acer issue. Here the code : *** Activity Code *** package com.cgdev.TestOpenGL; import android.app.Activity; import android.opengl.GLSurfaceView; import android.os.Bundle; public class TestOpenGL extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mGLSurfaceView = new GLSurfaceView(this); mGLSurfaceView.setRenderer(new MyRenderer()); setContentView(mGLSurfaceView); mGLSurfaceView.setRenderMode(GLSurfaceView.RENDERMODE_CONTINUOUSLY); } @Override protected void onResume() { super.onResume(); mGLSurfaceView.onResume(); } @Override protected void onPause() { super.onPause(); mGLSurfaceView.onPause(); } private GLSurfaceView mGLSurfaceView; } *** Renderer code *** package com.cgdev.TestOpenGL; import java.nio.ByteBuffer; import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.opengles.GL10; import android.opengl.GLSurfaceView; public class MyRenderer implements GLSurfaceView.Renderer { public MyRenderer() { } public void onDrawFrame(GL10 gl) { gl.glClearColor(1.0f, 0.0f, 0.0f, 1.0f); gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); gl.glReadPixels(1,1,1,1,GL10.GL_RGBA,GL10.GL_UNSIGNED_BYTE,buffer); gl.glClearColor(0.0f, 1.0f, 0.0f, 0.0f); gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); } public void onSurfaceChanged(GL10 gl, int width, int height) { gl.glViewport(0, 0, width, height); } public void onSurfaceCreated(GL10 gl, EGLConfig config) { } private ByteBuffer buffer = ByteBuffer.allocate(10); } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

