Giter Club home page Giter Club logo

Comments (4)

cxd4 avatar cxd4 commented on August 22, 2024

Update -- upon further notice, this issue seems to not happen on Windows because on Linux the GLSL compiler and linker is optimizing away the dummy part of the code, so the "col" attribute name is implicitly being removed by the compiler for optimizations on Linux. So that is why it cannot find it.

from opengl-js.

cxd4 avatar cxd4 commented on August 22, 2024

I suppose it's "fixed" as of this commit:
cedfe27

Though I spent hours thinking how to fix it without doing that change, as it's something of a pseudo-hack and normally to 100% be sure and prevent undefined behavior, you should be querying the GLSL attribute locations with a string op. However, vertex and color attributes were hard-coded internally to the old, deprecated OpenGL implementations, so maybe defaulting to dummy_col_ID = 1; isn't such an inaccurate fix.

Guess I leave the issue open in case somebody else can complain that there is a better way than mine, though writing high-level deprecated functions on top of modern OpenGL functions adds that extra dimension of complexity to the problem.

from opengl-js.

cxd4 avatar cxd4 commented on August 22, 2024

f9442dd

Actually, if this works, it would be the even better fix for this anyway, with slight performance improvements in the wrapper JS functions (my gl.js engine).

from opengl-js.

cxd4 avatar cxd4 commented on August 22, 2024

Fixed additionally by resorting to the new, manual tactics in this commit: da630c7

from opengl-js.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.