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/UniformBlockCenter.java
42 42
    {
43 43
    mMax  = MeshBase.getMaxEffComponents();
44 44
    mArray= new float[4*mMax];
45
    mUBO  = new InternalBuffer(GLES30.GL_UNIFORM_BUFFER, GLES30.GL_STATIC_READ);
45
    mUBO  = new InternalBuffer(GLES30.GL_UNIFORM_BUFFER, GLES30.GL_STATIC_DRAW);
46 46
    }
47 47

  
48 48
///////////////////////////////////////////////////////////////////////////////////////////////////
......
53 53
    int size = original.mArray.length;
54 54
    mArray= new float[size];
55 55
    System.arraycopy(original.mArray, 0, mArray, 0, size);
56
    mUBO = new InternalBuffer(GLES30.GL_UNIFORM_BUFFER, GLES30.GL_STATIC_READ);
56
    mUBO = new InternalBuffer(GLES30.GL_UNIFORM_BUFFER, GLES30.GL_STATIC_DRAW);
57 57
    }
58 58

  
59 59
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff