OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "gl/GrGLInterface.h" | 10 #include "gl/GrGLInterface.h" |
11 #include "gl/GrGLExtensions.h" | 11 #include "gl/GrGLExtensions.h" |
12 #include "GrGLUtil.h" | 12 #include "../GrGLUtil.h" |
13 | 13 |
14 #include <OpenGL/gl.h> | 14 #include <OpenGL/gl.h> |
15 #include <OpenGL/glext.h> | 15 #include <OpenGL/glext.h> |
16 | 16 |
17 #include <dlfcn.h> | 17 #include <dlfcn.h> |
18 | 18 |
19 static void* GetProcAddress(const char* name) { | 19 static void* GetProcAddress(const char* name) { |
20 return dlsym(RTLD_DEFAULT, name); | 20 return dlsym(RTLD_DEFAULT, name); |
21 } | 21 } |
22 | 22 |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 #if GL_VERSION_3_3 || GL_ARB_blend_func_extended | 286 #if GL_VERSION_3_3 || GL_ARB_blend_func_extended |
287 interface->fBindFragDataLocationIndexed = glBindFragDataLocationInde
xed; | 287 interface->fBindFragDataLocationIndexed = glBindFragDataLocationInde
xed; |
288 #else | 288 #else |
289 GET_PROC(BindFragDataLocationIndexed); | 289 GET_PROC(BindFragDataLocationIndexed); |
290 #endif | 290 #endif |
291 } | 291 } |
292 } | 292 } |
293 glInterface.get()->ref(); | 293 glInterface.get()->ref(); |
294 return glInterface.get(); | 294 return glInterface.get(); |
295 } | 295 } |
OLD | NEW |