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/flag/FlagRenderer.java
142 142

  
143 143
    public void onDrawFrame(GL10 glUnused) 
144 144
      {
145
      GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT);
146 145
      mScreen.render( System.currentTimeMillis() );
147 146
      }
148 147

  
......
178 177
    
179 178
    public void onSurfaceCreated(GL10 glUnused, EGLConfig config) 
180 179
      {
181
      GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
182

  
183 180
      InputStream is = mView.getContext().getResources().openRawResource(R.raw.iceland);
184 181
      Bitmap bitmap;
185 182
        

Also available in: Unified diff