Merge pull request #535 from sephiroth99/variousfixes

Two small fixes
This commit is contained in:
Ben Vanik 2016-02-16 07:18:19 -08:00
commit 043e5699ac
2 changed files with 1 additions and 2 deletions

View File

@ -59,7 +59,6 @@ X_STATUS GraphicsSystem::Setup(cpu::Processor* processor,
// It's shared with the display context so that we can resolve framebuffers // It's shared with the display context so that we can resolve framebuffers
// from it. // from it.
processor_context = provider()->CreateOffscreenContext(); processor_context = provider()->CreateOffscreenContext();
processor_context->ClearCurrent();
}); });
if (!processor_context) { if (!processor_context) {
xe::FatalError( xe::FatalError(

View File

@ -31,7 +31,7 @@ void NotifyListener::Initialize(uint64_t mask) {
void NotifyListener::EnqueueNotification(XNotificationID id, uint32_t data) { void NotifyListener::EnqueueNotification(XNotificationID id, uint32_t data) {
// Ignore if the notification doesn't match our mask. // Ignore if the notification doesn't match our mask.
if ((mask_ & uint64_t(1 << (id >> 25))) == 0) { if ((mask_ & uint64_t(1ULL << (id >> 25))) == 0) {
return; return;
} }