Moving graphics context creation around to hide actual creation.
Makes it easier to support APIs that don't have a concept of sharing.
This commit is contained in:
@@ -131,10 +131,6 @@ X_STATUS Emulator::Setup(
|
||||
if (!graphics_system_) {
|
||||
return X_STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
display_window_->loop()->PostSynchronous([this]() {
|
||||
display_window_->set_context(
|
||||
graphics_system_->CreateContext(display_window_));
|
||||
});
|
||||
|
||||
// Initialize the HID.
|
||||
input_system_ = std::make_unique<xe::hid::InputSystem>(display_window_);
|
||||
|
||||
Reference in New Issue
Block a user