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/UniformBlockAssociation.java
56 56
      mAssociations[mStride*i+LOC_EQU] = i;
57 57
      }
58 58

  
59
    mUBO = new InternalBuffer(GLES30.GL_UNIFORM_BUFFER, GLES30.GL_STATIC_READ);
59
    mUBO = new InternalBuffer(GLES30.GL_UNIFORM_BUFFER, GLES30.GL_STATIC_DRAW);
60 60
    }
61 61

  
62 62
///////////////////////////////////////////////////////////////////////////////////////////////////
......
69 69
    mAssociations= new int[size];
70 70
    System.arraycopy(original.mAssociations, 0, mAssociations, 0, size);
71 71

  
72
    mUBO = new InternalBuffer(GLES30.GL_UNIFORM_BUFFER, GLES30.GL_STATIC_READ);
72
    mUBO = new InternalBuffer(GLES30.GL_UNIFORM_BUFFER, GLES30.GL_STATIC_DRAW);
73 73
    }
74 74

  
75 75
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff