More fixes for Qt. Get games to launch (but black screen).

This commit is contained in:
Sacha committed 2013-04-04 17:29:58 +10:00
1 parent 9e5b512edb
commit d5bb7e127c
2 files changed
+11 -2

No files matched your search

+10 -1
View File
@@ -12,6 +12,7 @@
#include "UI/EmuScreen.h"
#include "UI/UIShader.h"
#include "UI/ui_atlas.h"
#include "ui/ui_context.h"
#include "GPU/ge_constants.h"
#include "EmuThread.h"
@@ -221,7 +222,6 @@ int NativeMix(short *audio, int num_samples)
void NativeInitGraphics()
{
INFO_LOG(BOOT, "NativeInitGraphics - should only be called once!");
gl_lost_manager_init();
ui_draw2d.SetAtlas(&ui_atlas);
@@ -245,6 +245,9 @@ void NativeInitGraphics()
theme.checkOn = I_CHECKEDBOX;
theme.checkOff = I_SQUARE;
ui_draw2d.Init();
ui_draw2d_front.Init();
UIInit(&ui_atlas, theme);
uiTexture = new Texture();
@@ -254,6 +257,9 @@ void NativeInitGraphics()
}
uiTexture->Bind(0);
uiContext = new UIContext();
uiContext->Init(UIShader_Get(), UIShader_GetPlain(), uiTexture, &ui_draw2d, &ui_draw2d_front);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
@@ -294,6 +300,9 @@ void NativeShutdownGraphics()
delete screenManager;
screenManager = 0;
ui_draw2d.Shutdown();
ui_draw2d_front.Shutdown();
UIShader_Shutdown();
gl_lost_manager_shutdown();
+1 -1
Submodule native updated: 2b32a7115e...8e06b06d7e.