GPU: More work on OpenGL renderer
This commit is contained in:
@ -4,13 +4,13 @@
|
||||
#include "dma.h"
|
||||
#include "gpu.h"
|
||||
|
||||
System::System()
|
||||
System::System(HostInterface* host_interface) : m_host_interface(host_interface)
|
||||
{
|
||||
m_cpu = std::make_unique<CPU::Core>();
|
||||
m_bus = std::make_unique<Bus>();
|
||||
m_dma = std::make_unique<DMA>();
|
||||
m_gpu = std::make_unique<GPU>();
|
||||
// m_gpu = GPU::CreateHardwareOpenGLRenderer();
|
||||
// m_gpu = std::make_unique<GPU>();
|
||||
m_gpu = GPU::CreateHardwareOpenGLRenderer();
|
||||
}
|
||||
|
||||
System::~System() = default;
|
||||
@ -26,7 +26,7 @@ bool System::Initialize()
|
||||
if (!m_dma->Initialize(m_bus.get(), m_gpu.get()))
|
||||
return false;
|
||||
|
||||
if (!m_gpu->Initialize(m_bus.get(), m_dma.get()))
|
||||
if (!m_gpu->Initialize(this, m_bus.get(), m_dma.get()))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user