mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
parent
0a755614a0
commit
7b6e304d84
|
@ -346,7 +346,8 @@ 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());
|
gfxContext.setViewport((wnd.getScreenWidth() - wnd.getWidth()) / 2, (wnd.getScreenHeight() - wnd.getHeight()) / 2 + wnd.getHeightOffset(),
|
||||||
|
wnd.getWidth(), wnd.getHeight());
|
||||||
gSP.changed |= CHANGED_VIEWPORT;
|
gSP.changed |= CHANGED_VIEWPORT;
|
||||||
|
|
||||||
Context::TexParameters setParams;
|
Context::TexParameters setParams;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user