Add to BeginFrame() functions

This commit is contained in:
VoxelTek 2025-07-16 18:10:35 +10:00
parent d6eae83772
commit a0777b6df3
2 changed files with 2 additions and 0 deletions

View File

@ -315,6 +315,7 @@ Uint32 OpenGL1Renderer::GetMeshId(IDirect3DRMMesh* mesh, const MeshGroup* meshGr
HRESULT OpenGL1Renderer::BeginFrame() HRESULT OpenGL1Renderer::BeginFrame()
{ {
SDL_GL_MakeCurrent(DDWindow, m_context);
GL11_BeginFrame((Matrix4x4*) &m_projection[0][0]); GL11_BeginFrame((Matrix4x4*) &m_projection[0][0]);
int lightIdx = 0; int lightIdx = 0;

View File

@ -485,6 +485,7 @@ Uint32 OpenGLES2Renderer::GetMeshId(IDirect3DRMMesh* mesh, const MeshGroup* mesh
HRESULT OpenGLES2Renderer::BeginFrame() HRESULT OpenGLES2Renderer::BeginFrame()
{ {
SDL_GL_MakeCurrent(DDWindow, m_context);
m_dirty = true; m_dirty = true;
glBindFramebuffer(GL_FRAMEBUFFER, m_fbo); glBindFramebuffer(GL_FRAMEBUFFER, m_fbo);