Author: khornicek
Date: Wed Oct 15 13:39:04 2008
New Revision: 36763
URL:
http://svn.reactos.org/svn/reactos?rev=36763&view=rev
Log:
remove unneeded check, it's ok to create new context in this case
Modified:
trunk/reactos/dll/3rdparty/mesa32/src/drivers/windows/icd/icd.c
Modified: trunk/reactos/dll/3rdparty/mesa32/src/drivers/windows/icd/icd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/3rdparty/mesa32/src/dr…
==============================================================================
--- trunk/reactos/dll/3rdparty/mesa32/src/drivers/windows/icd/icd.c [iso-8859-1]
(original)
+++ trunk/reactos/dll/3rdparty/mesa32/src/drivers/windows/icd/icd.c [iso-8859-1] Wed Oct
15 13:39:04 2008
@@ -51,6 +51,7 @@
typedef void *HPBUFFERARB;
+GLAPI const char * GLAPIENTRY wglGetExtensionsStringARB(HDC hdc);
GLAPI const char * GLAPIENTRY wglGetExtensionsStringEXT (void);
GLAPI BOOL GLAPIENTRY wglChoosePixelFormatARB (HDC hdc, const int *piAttribIList, const
FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
GLAPI BOOL GLAPIENTRY wglSwapIntervalEXT (int interval);
@@ -159,14 +160,8 @@
WGLAPI HGLRC GLAPIENTRY DrvCreateContext(HDC hdc)
{
- HWND hWnd;
int i = 0;
- if(!(hWnd = WindowFromDC(hdc)))
- {
- SetLastError(0);
- return(NULL);
- }
if (!ctx_count)
{
for(i=0;i<MESAWGL_CTX_MAX_COUNT;i++)
@@ -361,7 +356,7 @@
WGLAPI PROC GLAPIENTRY DrvGetProcAddress(LPCSTR lpszProc)
{
int i;
- PROC p = (PROC) (int) _glapi_get_proc_address((const char *) lpszProc);
+ PROC p = (PROC) _glapi_get_proc_address((const char *) lpszProc);
if (p)
return p;