mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-28 13:57:37 +00:00
Add to BeginFrame() functions
This commit is contained in:
parent
d6eae83772
commit
a0777b6df3
@ -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;
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user