mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
fixed 3dtexture usage on windows
This commit is contained in:
parent
85f216d968
commit
5890072809
|
@ -7,6 +7,11 @@
|
|||
#include "graphics_threaded.h"
|
||||
#include "backend_sdl.h"
|
||||
|
||||
|
||||
#if defined(CONF_FAMILY_WINDOWS)
|
||||
PFNGLTEXIMAGE3DPROC glTexImage3D;
|
||||
#endif
|
||||
|
||||
// ------------ CGraphicsBackend_Threaded
|
||||
|
||||
void CGraphicsBackend_Threaded::ThreadFunc(void *pUser)
|
||||
|
@ -603,6 +608,15 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Width, int *Height
|
|||
return -1;
|
||||
}
|
||||
|
||||
#if defined(CONF_FAMILY_WINDOWS)
|
||||
glTexImage3D = (PFNGLTEXIMAGE3DPROC) wglGetProcAddress("glTexImage3D");
|
||||
if(glTexImage3D == 0)
|
||||
{
|
||||
dbg_msg("gfx", "glTexImage3D not supported");
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
SDL_ShowCursor(0);
|
||||
|
||||
// fetch gl contexts and release the context from this thread
|
||||
|
|
Loading…
Reference in a new issue