mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Set viewport in TextDrawer::drawText
Fixed text messages not shown in some games.
This commit is contained in:
parent
ed1648c438
commit
156171bebd
|
@ -346,6 +346,9 @@ void TextDrawer::drawText(const char *_pText, float _x, float _y) const
|
||||||
gfxContext.setBlending(blend::SRC_ALPHA, blend::ONE_MINUS_SRC_ALPHA);
|
gfxContext.setBlending(blend::SRC_ALPHA, blend::ONE_MINUS_SRC_ALPHA);
|
||||||
m_program->activate();
|
m_program->activate();
|
||||||
|
|
||||||
|
gfxContext.setViewport(0, 0, wnd.getWidth(), wnd.getHeight());
|
||||||
|
gSP.changed |= CHANGED_VIEWPORT;
|
||||||
|
|
||||||
Context::TexParameters setParams;
|
Context::TexParameters setParams;
|
||||||
setParams.handle = m_atlas->m_pTexture->name;
|
setParams.handle = m_atlas->m_pTexture->name;
|
||||||
setParams.textureUnitIndex = textureIndices::Tex[0];
|
setParams.textureUnitIndex = textureIndices::Tex[0];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user