Comments (4)
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.
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.
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.
Fixed additionally by resorting to the new, manual tactics in this commit: da630c7
from opengl-js.
Related Issues (9)
- Client-side emulation of vertex arrays is not present.
- pixel transfers not implemented
- Memory allocation is unstable and might leak. HOT 1
- glColor4f only updates 1 of the 3 possible vertex size state combinations. HOT 1
- Broken glDrawElements on implementations with deferred rendering. HOT 1
- Command ordering glitch with EnableClientState and ColorPointer. HOT 2
- "packing limits" for GLSL programs?
- Blocked by LibreJS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opengl-js.