mirror of
https://github.com/holub/mame
synced 2025-05-30 17:41:47 +03:00
really fix opengl compile on MSVC (thanks to couriersud) (nw)
This commit is contained in:
parent
7edfd8b21d
commit
e77ccca75d
@ -17,6 +17,7 @@
|
||||
*/
|
||||
#ifdef OSD_WINDOWS
|
||||
#ifdef _MSC_VER
|
||||
#include <windows.h>
|
||||
#include "SDL1211_opengl.h"
|
||||
#else
|
||||
#include "GL/gl.h"
|
||||
|
@ -199,10 +199,10 @@ public:
|
||||
{
|
||||
m_error[0] = 0;
|
||||
|
||||
this->pfn_wglGetProcAddress = (PROC WINAPI (*)(LPCSTR lpszProc)) GetProcAddress(m_module, "wglGetProcAddress");
|
||||
this->pfn_wglCreateContext = (HGLRC WINAPI (*)(HDC hdc)) GetProcAddress(m_module, "wglCreateContext");
|
||||
this->pfn_wglDeleteContext = (BOOL WINAPI (*)(HGLRC hglrc)) GetProcAddress(m_module, "wglDeleteContext");
|
||||
this->pfn_wglMakeCurrent = (BOOL WINAPI (*)(HDC hdc, HGLRC hglrc)) GetProcAddress(m_module, "wglMakeCurrent");
|
||||
this->pfn_wglGetProcAddress = (PROC (WINAPI *)(LPCSTR lpszProc)) GetProcAddress(m_module, "wglGetProcAddress");
|
||||
this->pfn_wglCreateContext = (HGLRC (WINAPI *)(HDC hdc)) GetProcAddress(m_module, "wglCreateContext");
|
||||
this->pfn_wglDeleteContext = (BOOL (WINAPI *)(HGLRC hglrc)) GetProcAddress(m_module, "wglDeleteContext");
|
||||
this->pfn_wglMakeCurrent = (BOOL (WINAPI *)(HDC hdc, HGLRC hglrc)) GetProcAddress(m_module, "wglMakeCurrent");
|
||||
|
||||
m_hdc = GetDC(window);
|
||||
if (!setupPixelFormat(m_hdc))
|
||||
@ -306,10 +306,10 @@ private:
|
||||
HDC m_hdc;
|
||||
char m_error[256];
|
||||
|
||||
PROC WINAPI (*pfn_wglGetProcAddress)(LPCSTR lpszProc);
|
||||
HGLRC WINAPI (*pfn_wglCreateContext)(HDC hdc);
|
||||
BOOL WINAPI (*pfn_wglDeleteContext)(HGLRC hglrc);
|
||||
BOOL WINAPI (*pfn_wglMakeCurrent)(HDC hdc, HGLRC hglrc);
|
||||
PROC (WINAPI *pfn_wglGetProcAddress)(LPCSTR lpszProc);
|
||||
HGLRC (WINAPI *pfn_wglCreateContext)(HDC hdc);
|
||||
BOOL (WINAPI *pfn_wglDeleteContext)(HGLRC hglrc);
|
||||
BOOL (WINAPI *pfn_wglMakeCurrent)(HDC hdc, HGLRC hglrc);
|
||||
|
||||
static HMODULE m_module;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user