Previous 199869 Revisions Next

r36211 Tuesday 3rd March, 2015 at 03:00:45 UTC by Peter Ferrie
really fix opengl compile on MSVC (thanks to couriersud) (nw)
[src/osd/modules/opengl]osd_opengl.h
[src/osd/modules/render]drawogl.c

trunk/src/osd/modules/opengl/osd_opengl.h
r244722r244723
1717    */
1818   #ifdef OSD_WINDOWS
1919      #ifdef _MSC_VER
20         #include <windows.h>
2021         #include "SDL1211_opengl.h"
2122      #else
2223         #include "GL/gl.h"
trunk/src/osd/modules/render/drawogl.c
r244722r244723
199199   {
200200      m_error[0] = 0;
201201
202      this->pfn_wglGetProcAddress = (PROC WINAPI (*)(LPCSTR lpszProc)) GetProcAddress(m_module, "wglGetProcAddress");
203      this->pfn_wglCreateContext = (HGLRC WINAPI (*)(HDC hdc)) GetProcAddress(m_module, "wglCreateContext");
204      this->pfn_wglDeleteContext = (BOOL WINAPI (*)(HGLRC hglrc)) GetProcAddress(m_module, "wglDeleteContext");
205      this->pfn_wglMakeCurrent = (BOOL WINAPI (*)(HDC hdc, HGLRC hglrc)) GetProcAddress(m_module, "wglMakeCurrent");
202      this->pfn_wglGetProcAddress = (PROC (WINAPI *)(LPCSTR lpszProc)) GetProcAddress(m_module, "wglGetProcAddress");
203      this->pfn_wglCreateContext = (HGLRC (WINAPI *)(HDC hdc)) GetProcAddress(m_module, "wglCreateContext");
204      this->pfn_wglDeleteContext = (BOOL (WINAPI *)(HGLRC hglrc)) GetProcAddress(m_module, "wglDeleteContext");
205      this->pfn_wglMakeCurrent = (BOOL (WINAPI *)(HDC hdc, HGLRC hglrc)) GetProcAddress(m_module, "wglMakeCurrent");
206206
207207      m_hdc = GetDC(window);
208208      if (!setupPixelFormat(m_hdc))
r244722r244723
306306   HDC m_hdc;
307307   char m_error[256];
308308
309   PROC WINAPI (*pfn_wglGetProcAddress)(LPCSTR lpszProc);
310   HGLRC WINAPI (*pfn_wglCreateContext)(HDC hdc);
311   BOOL WINAPI (*pfn_wglDeleteContext)(HGLRC hglrc);
312   BOOL WINAPI (*pfn_wglMakeCurrent)(HDC hdc, HGLRC hglrc);
309   PROC (WINAPI *pfn_wglGetProcAddress)(LPCSTR lpszProc);
310   HGLRC (WINAPI *pfn_wglCreateContext)(HDC hdc);
311   BOOL (WINAPI *pfn_wglDeleteContext)(HGLRC hglrc);
312   BOOL (WINAPI *pfn_wglMakeCurrent)(HDC hdc, HGLRC hglrc);
313313
314314   static HMODULE m_module;
315315};


Previous 199869 Revisions Next


© 1997-2024 The MAME Team