equal
deleted
inserted
replaced
76 { |
76 { |
77 delete g_eglState; |
77 delete g_eglState; |
78 g_eglState = NULL; |
78 g_eglState = NULL; |
79 return NULL; |
79 return NULL; |
80 } |
80 } |
81 g_eglState->AddRef(); |
|
82 } |
81 } |
83 return g_eglState; |
82 return g_eglState; |
84 #elif defined(_WIN32) |
83 #elif defined(_WIN32) |
85 CEGLOs::GetLock( &g_eglLock ); |
84 CEGLOs::GetLock( &g_eglLock ); |
86 if( !g_eglState ) |
85 if( !g_eglState ) |
2491 { |
2490 { |
2492 process = state->AddProcess( processId, true ); |
2491 process = state->AddProcess( processId, true ); |
2493 EGLI_ASSERT( process != NULL ); |
2492 EGLI_ASSERT( process != NULL ); |
2494 CEGLThread* thread = process->AddThread( threadId, true, state->SupportedApis() ); |
2493 CEGLThread* thread = process->AddThread( threadId, true, state->SupportedApis() ); |
2495 EGLI_ASSERT( thread != NULL ); |
2494 EGLI_ASSERT( thread != NULL ); |
|
2495 state->AddRef(); |
2496 } |
2496 } |
2497 else if( !(process->HasThread( threadId )) ) |
2497 else if( !(process->HasThread( threadId )) ) |
2498 { |
2498 { |
2499 CEGLThread* thread = process->AddThread( threadId, true, state->SupportedApis() ); |
2499 CEGLThread* thread = process->AddThread( threadId, true, state->SupportedApis() ); |
2500 EGLI_ASSERT( thread != NULL ); |
2500 EGLI_ASSERT( thread != NULL ); |
|
2501 state->AddRef(); |
2501 } |
2502 } |
2502 else |
2503 else |
2503 { |
2504 { |
2504 state->SetCurrentProcessThread( processId, threadId ); |
2505 state->SetCurrentProcessThread( processId, threadId ); |
2505 } |
2506 } |