I have code that does something similar to this in
GLSurfaceViewRenderer:

drawFrame()
 {


  if (condition1) {

      //setup vertexbuffer,colorbuffer,indexbuffer
      //draw triangle_strips

  } else {

     //call spritetext code to print some text on the screen (similar
to spriteText example in SDK)

 }

}

First I call condition1 setup the objects on the scene. Then I turn
condition1 FALSE to write some text on the screen.

It works perfectly in 2.1 (Samsung Galaxy S Captivate) and 2.2
(Motorola droid)

But when I try it on Nexus One running 2.3 (Gingerbread)  it is fine
upto the point where condition1 is TRUE.  When the condition1 becomes
FALSE and it is time to write text on the scene the screen has all
sorts of random colors.

The app is compiled with SDK level 4(1.6).

I am unable to understand if my code is same why would the app work
perfectly fine on 2.1 and 2.2 but produce this bizarre behavior on
2.3.

 If I provide a tarball and a sample apk would someone from the
framework team help me debug this or provide some pointers.

Could someone point me to what could have changed in 2.3 that could
cause this?

Thanks,
Leo



-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to