openrndr / orx

A growing library of assorted data structures, algorithms and utilities for OPENRNDR
https://openrndr.org
BSD 2-Clause "Simplified" License
118 stars 36 forks source link

Bug report: the DemoTessShader0?.kt demos fail to run #316

Open hamoid opened 1 year ago

hamoid commented 1 year ago

Operating System

Linux

OPENRNDR version

dfa59b3d879e719a1b4b078a310d3758d1f4e743

ORX version

2b66390

Java version (if applicable)

adopt-openjdk-14.0.1

Describe the bug

The DemoTessShader 01 to 03 demos fail on this line:

driver.drawVertexBuffer(shader, listOf(vb), DrawPrimitive.PATCHES, 0, vb.vertexCount)

with

GL ERROR: GL_INVALID_VALUE null (GL3Exception)

The DemoTessShader04 fails at:

            val shader = Shader.preprocessedFromUrls(
                    vsUrl = resourceUrl("/shaders/ts-04.vert"),
                    tcsUrl = resourceUrl("/shaders/ts-04.tesc"),
                    tesUrl = resourceUrl("/shaders/ts-04.tese"),
                    gsUrl = resourceUrl("/shaders/ts-04.geom"),
                    fsUrl = resourceUrl("/shaders/ts-04.frag")
            )

with

An operation is not implemented: Not yet implemented (NotImplementedError)

Steps to reproduce the bug

Run the mentioned demos in the orx repo