1
General / Weird crash in glDrawArrays
« on: January 18, 2012, 09:51:35 pm »
Hello,
I am getting a crash with SFML from current git HEAD on this code: http://sprunge.us/BcDG
Backtrace:
Happens on win/linux/mac.
Did I do something wrong or did I stumble upon a bug?
I tried running the same Draw function in GLFW and it worked.
I am getting a crash with SFML from current git HEAD on this code: http://sprunge.us/BcDG
Backtrace:
Quote
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x0000000101bab554 in gleRunVertexSubmitImmediate ()
(gdb) bt
#0 0x0000000101bab554 in gleRunVertexSubmitImmediate ()
#1 0x0000000101baa5db in gleLLVMArrayFunc ()
#2 0x0000000101baa5ab in gleSetVertexArrayFunc ()
#3 0x0000000101b95f03 in gleDrawArraysOrElements_ExecCore ()
#4 0x0000000101b206b8 in glDrawArrays_Exec ()
#5 0x00000001000016b2 in DrawCube () at src/DrawCube.cpp:49
#6 0x0000000100001815 in main () at src/DrawCube.cpp:67
Happens on win/linux/mac.
Did I do something wrong or did I stumble upon a bug?
I tried running the same Draw function in GLFW and it worked.