mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Fix buffer initialized with wrong number of components
Poly vertex buffer was initialized with 3 components, but has 4.
This commit is contained in:
@@ -1190,7 +1190,7 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
if (!polyBuffersCreated || polyBuffersContextIsOutdated()) {
|
||||
polyBuffersContext = pgl.getCurrentContext();
|
||||
|
||||
bufPolyVertex = new VertexBuffer(this, PGL.ARRAY_BUFFER, 3, PGL.SIZEOF_FLOAT);
|
||||
bufPolyVertex = new VertexBuffer(this, PGL.ARRAY_BUFFER, 4, PGL.SIZEOF_FLOAT);
|
||||
bufPolyColor = new VertexBuffer(this, PGL.ARRAY_BUFFER, 1, PGL.SIZEOF_INT);
|
||||
bufPolyNormal = new VertexBuffer(this, PGL.ARRAY_BUFFER, 3, PGL.SIZEOF_FLOAT);
|
||||
bufPolyTexcoord = new VertexBuffer(this, PGL.ARRAY_BUFFER, 2, PGL.SIZEOF_FLOAT);
|
||||
|
||||
Reference in New Issue
Block a user