esUtils_win32.c the ValidateRect() function invoke error
akbot48 opened this issue · 1 comments
akbot48 commented
I build on VS 2017 with windows 10 64bit
when each demo debug, will prompt an error in esUtils_win32.c
line:80 when ValidateRect() is invoked
shows esContext encounter an nullPtr
Can you tell me why this happen.
akbot48 commented
I Got a solution is that in the soruce file esUtils_win32.c
before
line80 : ValidateRect ( esContext->eglNativeWindow, NULL );
add a judegment
if(esContext)
that is
if(esContext){
ValidateRect ( esContext->eglNativeWindow, NULL );
}
as a window message received , the GetWindowLongPtr() may not get the context in time。