mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-28 05:47:38 +00:00
Fix ImGui debug window weirdness
This commit is contained in:
parent
84bd0a1a87
commit
b2bbfb17cf
@ -175,6 +175,7 @@ static Uint32 UploadTextureData(SDL_Surface* src, bool useNPOT, bool isUI, float
|
||||
|
||||
Uint32 OpenGL1Renderer::GetTextureId(IDirect3DRMTexture* iTexture, bool isUI, float scaleX, float scaleY)
|
||||
{
|
||||
SDL_GL_MakeCurrent(DDWindow, m_context);
|
||||
auto texture = static_cast<Direct3DRMTextureImpl*>(iTexture);
|
||||
auto surface = static_cast<DirectDrawSurfaceImpl*>(texture->m_surface);
|
||||
|
||||
@ -371,6 +372,7 @@ void OpenGL1Renderer::Resize(int width, int height, const ViewportTransform& vie
|
||||
|
||||
void OpenGL1Renderer::Clear(float r, float g, float b)
|
||||
{
|
||||
SDL_GL_MakeCurrent(DDWindow, m_context);
|
||||
m_dirty = true;
|
||||
GL11_Clear(r, g, b);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user