Comments (4)
Great I have submitted a pull request for this, this was not really a pressing issue but I will try to help where I can..
from exengine.
GLint ex_uniform_map[256][256] = {0};
What actually happens here is that the first element of the array is set to the value in the braces, in this case it would be 0. After this, the rest of the array is initialized to 0 by default. If I where to set that value to say, 1. The first element of the array would be 1 while the rest would again be initialized to 0 by default.
Your solution does indeed remove the warning, without any logic actually changing.
note that = {0} has been valid since c98, I believe
from exengine.
Ah alright if it's valid c I guess it's fine. And I will close this comment for that.
However one could still argue that the double curly bracket is "more readable", hence why it is probably a compile warning over a compile error.
from exengine.
@subject546 feel free to submit a PR though, if not I'll get around to it eventually. I'm currently focusing on other aspects of the engine.
from exengine.
Related Issues (16)
- Uniformed code style HOT 1
- Redundant memset operation on coll_tree HOT 8
- Discord HOT 1
- Taking sponza as a test scene HOT 18
- *pose* field never used in IQM HOT 6
- replace imgui with nuklear HOT 1
- OpenGL ES 2.0 / WebGL (v1) Back-porting HOT 1
- Examples & Docs HOT 1
- dirlight and ssao HOT 1
- "Could not load" multiple files HOT 3
- Cache shader uniform locations
- Add OpenAL dependency HOT 2
- Deferred renderer setting not working HOT 3
- Player Properties HOT 2
- Default game hangs after launching the binary generated by make on cygwin HOT 21
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 exengine.