Comments (2)
It's not flixel's fault. The #pragma header
directive is preprocessed by a simple string replace, here:
Missing the space means that the substitution won't take place, and the resulting shader string is sent as-is to the opengl driver. The error message is GPU-vendor-dependent: and some vendors might also treat it as a warning and/or just skip the faulty line, so you could have a shader working fine on your GPU and then failing for some of your players.
Probably the only way to catch this type of errors independently of opengl drivers is to use a Haxe based GLSL parser/compiler like Heaps' HXSL.
from openfl.
I'm mainly surprised it's not giving this error:
'pragmaheader' : invalid directive name
from openfl.
Related Issues (20)
- Linking to `utest` or `munit` breaks HTML5 target HOT 1
- how do i use the core opengl core profile on macOS haxe? HOT 5
- Support for uniform structures in GLSL
- WebSocket APIs
- preserveDrawingBuffer attribute support.
- iOS Runpath issue
- Holding down keyboard keys on MacOS brings up special character menu HOT 5
- Threading with bitmap datas converted to textures silent crashes the game HOT 2
- Setting bitmap smoothing to false still results in smoothed bitmaps HOT 1
- openfl.net.FileReference.download(..) do not opens file-browsing dialog in browser HOT 7
- Memory is not released when the BitmapData reference goes out of scope or is nulled out. HOT 3
- FPS innaccurate for stage.frameRate HOT 3
- Changing "soundTransform.volume" doesn't work for HTML5 HOT 1
- Apostrophe is not decoded in htmlText for TextField HOT 2
- URLRequest fails to attach cookie by manipulating its header HOT 2
- HTML5: Sounds stop playing in Safari (iOS) after focus change.
- manageCookies does not withCredentials in HTTPRequest HOT 7
- cacheAsBitmap result is striped HOT 1
- SoundChannel leftPeak/rightPeak is always 1 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 openfl.