Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: third_party/glew/src/glew.c

Issue 1743004: Windows OSMesa DLL only exports OSMesa functions.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 ** The OpenGL Extension Wrangler Library 2 ** The OpenGL Extension Wrangler Library
3 ** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org> 3 ** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
4 ** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org> 4 ** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
5 ** Copyright (C) 2002, Lev Povalahev 5 ** Copyright (C) 2002, Lev Povalahev
6 ** All rights reserved. 6 ** All rights reserved.
7 ** 7 **
8 ** Redistribution and use in source and binary forms, with or without 8 ** Redistribution and use in source and binary forms, with or without
9 ** modification, are permitted provided that the following conditions are met: 9 ** modification, are permitted provided that the following conditions are met:
10 ** 10 **
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 static HMODULE oglImage = NULL; 79 static HMODULE oglImage = NULL;
80 static PFNOSMESAGETPROCADDRESSPROC osmesaGetProcAddress = NULL; 80 static PFNOSMESAGETPROCADDRESSPROC osmesaGetProcAddress = NULL;
81 void* proc = NULL; 81 void* proc = NULL;
82 82
83 if (NULL == oglImage) { 83 if (NULL == oglImage) {
84 oglImage = LoadLibraryA("osmesa.dll"); 84 oglImage = LoadLibraryA("osmesa.dll");
85 if (NULL == oglImage) { 85 if (NULL == oglImage) {
86 oglImage = LoadLibraryA("opengl32.dll"); 86 oglImage = LoadLibraryA("opengl32.dll");
87 } 87 }
88 else { 88 else {
89 osmesaGetProcAddress = (PFNOSMESAGETPROCADDRESSPROC) GetProcAddress(oglIma ge, "_OSMesaGetProcAddress@4"); 89 osmesaGetProcAddress = (PFNOSMESAGETPROCADDRESSPROC) GetProcAddress(oglIma ge, "OSMesaGetProcAddress");
90 } 90 }
91 } 91 }
92 if (NULL != oglImage) { 92 if (NULL != oglImage) {
93 proc = (void*) GetProcAddress(oglImage, (LPCSTR) name); 93 proc = (void*) GetProcAddress(oglImage, (LPCSTR) name);
94 } 94 }
95 if (NULL == proc) { 95 if (NULL == proc) {
96 if (osmesaGetProcAddress) { 96 if (osmesaGetProcAddress) {
97 proc = osmesaGetProcAddress(name); 97 proc = osmesaGetProcAddress(name);
98 } 98 }
99 else { 99 else {
(...skipping 12906 matching lines...) Expand 10 before | Expand all | Expand 10 after
13006 } 13006 }
13007 #endif 13007 #endif
13008 } 13008 }
13009 } 13009 }
13010 ret = (len == 0); 13010 ret = (len == 0);
13011 } 13011 }
13012 return ret; 13012 return ret;
13013 } 13013 }
13014 13014
13015 #endif /* _WIN32 */ 13015 #endif /* _WIN32 */
OLDNEW
« no previous file with comments | « no previous file | third_party/mesa/MesaLib/src/mesa/drivers/osmesa/osmesa.def » ('j') | third_party/mesa/mesa.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698