|
Why is minor component displayed at left ?
|
|
09-12-2015, 06:26 PM
Post: #1
|
|||
|
|||
|
Why is minor component displayed at left ?
Code: minor_gl_version() -> |
|||
|
09-12-2015, 08:11 PM
(This post was last modified: 09-12-2015 08:28 PM by micheus.)
Post: #2
|
||||
|
||||
|
RE: Why is minor component displayed at left ?
ggaliens, if you are coming to work in wx development version I recommend you follow the proper bug's thread.
![]() That was fixed in accord wit this post: http://www.wings3d.com/forum/showthread....61#pid7861 As well as you can fix by trying to keep your branch updated by following the Don't branch at git: https://github.com/dgud/wings/commit/645...b76898b591 It's the the way I have been doing .
|
||||
|
09-19-2015, 12:22 AM
(This post was last modified: 09-19-2015 12:30 AM by ggaliens.)
Post: #3
|
|||
|
|||
|
RE: Why is minor component displayed at left ?
Micheus ... Dan ... I think I'm seeing a potential weakness in OpenGL version vetting ...
Look at this testing I have done on command line ... Code: 1> {2,1} < {3,1,2}.My thought would be to put in an "assertion" that both tuples are three tuples ... else toss in a fatal. Anyways ... I'm going to try to PUSH an improved version for you guys to ponder. Maybe something like this is better ... Code: minor_gl_version() -> |
|||
|
09-19-2015, 04:17 AM
Post: #4
|
||||
|
||||
|
RE: Why is minor component displayed at left ?
ggaliens, there is no reason for all that extra code you want to add:
Code: [{_,{_,_,_}=_VerTuple}] -> % assert that a 3 tuple is returned as expectedThe version tuple is already ensured to have three elements. Just look in wings_gl.erl - init_extensions/0, where the version is stored: Code: init_extensions() ->
|
||||
|
09-19-2015, 03:12 PM
Post: #5
|
|||
|
|||
|
RE: Why is minor component displayed at left ?
Each unit of code should be a bit independent when possible. Assumptions that cut across modules are ugly.
I find aspects of init_extentions to also be scary. If the items besides major and minor version can be hard to predict ... why try to cast this stuff to zero 0 ? Just catch what is there and pass it on to the next consumer. Then just let the compare happen on two digits. That should be enough. |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)






@MicheusVieira
MicheusVieira
Micheuss
micheus4wings3d