Project

General

Profile

« Previous | Next » 

Revision 855ba24e

Added by Leszek Koltunski about 7 years ago

New 'glClearColor' and 'glClearDepthf' APIs in OutputSurface. This fixes the 'transparency' regressions from last commit.

View differences:

src/main/java/org/distorted/examples/save/SaveRenderer.java
149 149
   
150 150
  public void onDrawFrame(GL10 glUnused)
151 151
    {
152
    GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT);
153

  
154 152
    long time = System.currentTimeMillis();
155 153

  
156 154
    if( isSaving )  // render to an offscreen buffer and read pixels
......
224 222
    
225 223
  public void onSurfaceCreated(GL10 glUnused, EGLConfig config)
226 224
    {
227
    GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
228

  
229 225
    InputStream is = mView.getContext().getResources().openRawResource(R.raw.girl);
230 226
    Bitmap bitmap;
231 227

  

Also available in: Unified diff