Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error in my ubuntu 14 enviroment. #69

Open
xiaoguizi87 opened this issue Nov 6, 2014 · 0 comments
Open

Compile error in my ubuntu 14 enviroment. #69

xiaoguizi87 opened this issue Nov 6, 2014 · 0 comments

Comments

@xiaoguizi87
Copy link

lib/shader.c: In function ‘shader_init’:
lib/shader.c:23:27: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

define BUFFER_OFFSET(f) ((int)&(((struct vertex *)NULL)->f))

^
lib/shader.c:102:38: note: in expansion of macro ‘BUFFER_OFFSET’
{ "position", 0, 2, sizeof(float), BUFFER_OFFSET(vp.vx) },

My gcc verion is gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant