(Libxenon) fix (still crashes during init)

This commit is contained in:
TwinAphex51224 2011-12-15 15:19:03 +01:00
parent 7c28a62b40
commit f431f77834

View File

@ -87,6 +87,7 @@ typedef struct gl
unsigned char *screen;
struct XenosVertexBuffer *vb;
struct XenosDevice * gl_device;
struct XenosDevice real_device;
struct XenosShader * g_pVertexShader;
struct XenosShader * g_pPixelTexturedShader;
struct XenosSurface * g_pTexture;
@ -110,6 +111,8 @@ static void *xenon360_gfx_init(const video_info_t *video, const input_driver_t *
if (!gl)
return NULL;
gl->gl_device = &gl->real_device;
Xe_Init(gl->gl_device);
Xe_SetRenderTarget(gl->gl_device, Xe_GetFramebufferSurface(gl->gl_device));