| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 */ |
| OLD | NEW |