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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 } | 213 } |
214 if (extensions.has("GL_EXT_framebuffer_blit")) { | 214 if (extensions.has("GL_EXT_framebuffer_blit")) { |
215 GR_GL_GET_PROC_SUFFIX(BlitFramebuffer, EXT); | 215 GR_GL_GET_PROC_SUFFIX(BlitFramebuffer, EXT); |
216 } | 216 } |
217 } else { | 217 } else { |
218 // we must have FBOs | 218 // we must have FBOs |
219 delete interface; | 219 delete interface; |
220 return NULL; | 220 return NULL; |
221 } | 221 } |
222 GR_GL_GET_PROC(BindFragDataLocationIndexed); | 222 GR_GL_GET_PROC(BindFragDataLocationIndexed); |
| 223 |
223 interface->fStandard = kGL_GrGLStandard; | 224 interface->fStandard = kGL_GrGLStandard; |
| 225 interface->fExtensions.swap(&extensions); |
| 226 |
224 return interface; | 227 return interface; |
225 } else { | 228 } else { |
226 return NULL; | 229 return NULL; |
227 } | 230 } |
228 } | 231 } |
OLD | NEW |