c++ - program ignores everything after function is called -


i can't explaing properly.. have code like

printf_s("%s", "1"); gldrawelements(gl_triangles, model.indcount, gl_unsigned_int, (void*)0);  printf_s("%s", "2"); eglswapbuffers ( escontext->egldisplay, escontext->eglsurface); 

and 2 never printed .when remove gldrawelements it's ok

gldrawelements(gl_triangles, model.indcount, gl_unsigned_int, (void*)0);                                              ^^^^^^^^^^^^^^^ whaaaaat? 

opengl es' gldrawelements() not accept gl_unsigned_int type, gl_unsigned_byte or gl_unsigned_short.

if check glgeterror() after call should gl_invalid_enum.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -