GCC doesn't like shady pointer arithmetics
This commit is contained in:
parent
ae189dccff
commit
71272171ab
1 changed files with 2 additions and 2 deletions
|
@ -187,7 +187,7 @@ Converts a normal pointer to a VBO compatible pointer (used for some of the geom
|
|||
DriverPtr GL_WrapUserPointer(void *p) {
|
||||
DriverPtr dr;
|
||||
dr.segment = 0;
|
||||
dr.offset = (byte *)p-NULL;
|
||||
dr.offset = (byte *)p-(byte*)NULL;
|
||||
return dr;
|
||||
}
|
||||
|
||||
|
@ -379,4 +379,4 @@ void GL_InitDriverMem(void) {
|
|||
|
||||
void GL_FreeDriverMem(void) {
|
||||
GL_FreeAll();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue