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/sink/SinkRenderer.java
72 72
   
73 73
  public void onDrawFrame(GL10 glUnused) 
74 74
    {
75
    GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT);
76 75
    mScreen.render( System.currentTimeMillis() );
77 76
    }
78 77

  
......
106 105
    
107 106
  public void onSurfaceCreated(GL10 glUnused, EGLConfig config) 
108 107
    {
109
    GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
110

  
111 108
    InputStream is = mView.getContext().getResources().openRawResource(R.raw.cat);
112 109
    Bitmap bitmap;
113 110
        

Also available in: Unified diff