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

Line ending issue with Mercurial or Visual Studio -

php - Retrieving data submitted with Yii's CActiveForm -

fatal error - Android RunTimeError: Java.lang.RunTimeException: Unable to Instantiate activity -