projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prevented case where no window was set when waiting for events.
[freeglut]
/
src
/
blackberry
/
fg_main_blackberry.c
diff --git
a/src/blackberry/fg_main_blackberry.c
b/src/blackberry/fg_main_blackberry.c
index
f7b8f66
..
e347703
100644
(file)
--- a/
src/blackberry/fg_main_blackberry.c
+++ b/
src/blackberry/fg_main_blackberry.c
@@
-160,7
+160,7
@@
fg_time_t fgPlatformSystemTime ( void )
void fgPlatformSleepForEvents( fg_time_t msec )
{
//XXX: Is this right? Is there a more direct way to access the context?
void fgPlatformSleepForEvents( fg_time_t msec )
{
//XXX: Is this right? Is there a more direct way to access the context?
- if(bps_get_event(&fgStructure.CurrentWindow->Window.pContext.event, (int)msec) != BPS_SUCCESS) {
+ if(fgStructure.CurrentWindow && bps_get_event(&fgStructure.CurrentWindow->Window.pContext.event, (int)msec) != BPS_SUCCESS) {
LOGW("BPS couldn't get event");
}
}
LOGW("BPS couldn't get event");
}
}