Page 1 of 1

Int to Pointer in GFXLib

Posted: Mon Mar 20, 2017 8:11 am
by Itusa

Code: Select all

src/gfxlib_struct.cpp 388: 
error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
                                 glindices.push_back( use_vbo ? (GLvoid*) (stride*offs)
Currently this does not affect the game compilation but, it is causing a warning and should be fixed. So far as I can tell it is because of the use of "GLvoid" itself, but switching around the function to replace void and then cast otherwise didn't go to plan. I would appreciate some assistance in this matter.

Here's a link to the source should anyone need further information.

Re: Int to Pointer in GFXLib

Posted: Mon Mar 20, 2017 1:50 pm
by TBeholder
IDK, perhaps there's a way to avoid this cast?
Is this relevant? http://stackoverflow.com/questions/1423 ... -stdvector

Re: Int to Pointer in GFXLib

Posted: Mon Mar 20, 2017 10:18 pm
by Itusa
I like that idea I'll look into it. (When I get chance later, if you want to clone a source and try something yourself, feel free)

Re: Int to Pointer in GFXLib

Posted: Sun Mar 26, 2017 6:08 am
by Itusa
The problem still remains and it's kinda outta my depth unfortunately.

Re: Int to Pointer in GFXLib

Posted: Sun Apr 09, 2017 2:21 pm
by Itusa
Just a heads up but we solved this:

https://github.com/Taose/Vegastrike-taose/issues/73