Project

General

Profile

« Previous | Next » 

Revision 73bcf555

Added by Leszek Koltunski over 2 years ago

Correct the glBufferData's usage argument: in UBO and VBO cases, it should be GL_STATIC_DRAW.

View differences:

src/main/java/org/distorted/library/uniformblock/UniformBlockFloatUniforms.java
48 48

  
49 49
    if( mReallyUseUBO )
50 50
      {
51
      mUBO = new InternalBuffer(GLES30.GL_UNIFORM_BUFFER, GLES30.GL_STATIC_READ);
51
      mUBO = new InternalBuffer(GLES30.GL_UNIFORM_BUFFER, GLES30.GL_STATIC_DRAW);
52 52
      }
53 53
    }
54 54

  
......
65 65

  
66 66
    if( mReallyUseUBO )
67 67
      {
68
      mUBO = new InternalBuffer(GLES30.GL_UNIFORM_BUFFER, GLES30.GL_STATIC_READ);
68
      mUBO = new InternalBuffer(GLES30.GL_UNIFORM_BUFFER, GLES30.GL_STATIC_DRAW);
69 69
      }
70 70
    }
71 71

  

Also available in: Unified diff