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 #include "gl/GrGLExtensions.h" | 9 #include "gl/GrGLExtensions.h" |
10 #include "gl/GrGLInterface.h" | 10 #include "gl/GrGLInterface.h" |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 return NULL; | 217 return NULL; |
218 } | 218 } |
219 GR_GL_GET_PROC(BindFragDataLocationIndexed); | 219 GR_GL_GET_PROC(BindFragDataLocationIndexed); |
220 | 220 |
221 if (extensions.has("GL_EXT_debug_marker")) { | 221 if (extensions.has("GL_EXT_debug_marker")) { |
222 GR_GL_GET_PROC_SUFFIX(InsertEventMarker, EXT); | 222 GR_GL_GET_PROC_SUFFIX(InsertEventMarker, EXT); |
223 GR_GL_GET_PROC_SUFFIX(PopGroupMarker, EXT); | 223 GR_GL_GET_PROC_SUFFIX(PopGroupMarker, EXT); |
224 GR_GL_GET_PROC_SUFFIX(PushGroupMarker, EXT); | 224 GR_GL_GET_PROC_SUFFIX(PushGroupMarker, EXT); |
225 } | 225 } |
226 | 226 |
| 227 if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_ARB_invalidate_subdata"))
{ |
| 228 GR_GL_GET_PROC(InvalidateBufferData); |
| 229 GR_GL_GET_PROC(InvalidateBufferSubData); |
| 230 GR_GL_GET_PROC(InvalidateFramebuffer); |
| 231 GR_GL_GET_PROC(InvalidateSubFramebuffer); |
| 232 GR_GL_GET_PROC(InvalidateTexImage); |
| 233 GR_GL_GET_PROC(InvalidateTexSubImage); |
| 234 } |
| 235 |
227 interface->fStandard = kGL_GrGLStandard; | 236 interface->fStandard = kGL_GrGLStandard; |
228 interface->fExtensions.swap(&extensions); | 237 interface->fExtensions.swap(&extensions); |
229 | 238 |
230 return interface; | 239 return interface; |
231 } | 240 } |
OLD | NEW |