Experimenting with vertex pipeline.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <poly/threading.h>
|
||||
#include <xenia/cpu/processor.h>
|
||||
#include <xenia/gpu/gl4/gl4_gpu-private.h>
|
||||
#include <xenia/gpu/gpu-private.h>
|
||||
|
||||
namespace xe {
|
||||
@@ -42,11 +43,19 @@ X_STATUS GL4GraphicsSystem::Setup() {
|
||||
control_ = std::make_unique<WGLControl>(loop);
|
||||
emulator_->main_window()->AddChild(control_.get());
|
||||
|
||||
if (FLAGS_thread_safe_gl) {
|
||||
control_->context()->MakeCurrent();
|
||||
}
|
||||
|
||||
// Setup the GL context the command processor will do all its drawing in.
|
||||
// It's shared with the control context so that we can resolve framebuffers
|
||||
// from it.
|
||||
processor_context = control_->context()->CreateShared();
|
||||
|
||||
if (FLAGS_thread_safe_gl) {
|
||||
control_->context()->ClearCurrent();
|
||||
}
|
||||
|
||||
control_ready_fence.Signal();
|
||||
});
|
||||
control_ready_fence.Wait();
|
||||
|
||||
Reference in New Issue
Block a user