OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 | 8 |
9 #include "gl/GrGLInterface.h" | 9 #include "gl/GrGLInterface.h" |
10 #include "gl/GrGLExtensions.h" | 10 #include "gl/GrGLExtensions.h" |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 NULL == fBlitFramebuffer) { | 326 NULL == fBlitFramebuffer) { |
327 return false; | 327 return false; |
328 } | 328 } |
329 } | 329 } |
330 if (extensions.has("GL_APPLE_framebuffer_multisample")) { | 330 if (extensions.has("GL_APPLE_framebuffer_multisample")) { |
331 if (NULL == fRenderbufferStorageMultisample || | 331 if (NULL == fRenderbufferStorageMultisample || |
332 NULL == fResolveMultisampleFramebuffer) { | 332 NULL == fResolveMultisampleFramebuffer) { |
333 return false; | 333 return false; |
334 } | 334 } |
335 } | 335 } |
336 if (extensions.has("GL_IMG_multisampled_render_to_texture")) { | 336 if (extensions.has("GL_IMG_multisampled_render_to_texture") || |
| 337 extensions.has("GL_EXT_multisampled_render_to_texture")) { |
337 if (NULL == fRenderbufferStorageMultisample || | 338 if (NULL == fRenderbufferStorageMultisample || |
338 NULL == fFramebufferTexture2DMultisample) { | 339 NULL == fFramebufferTexture2DMultisample) { |
339 return false; | 340 return false; |
340 } | 341 } |
341 } | 342 } |
342 } | 343 } |
343 | 344 |
344 // On ES buffer mapping is an extension. On Desktop | 345 // On ES buffer mapping is an extension. On Desktop |
345 // buffer mapping was part of original VBO extension | 346 // buffer mapping was part of original VBO extension |
346 // which we require. | 347 // which we require. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 if (NULL == fBindVertexArray || | 379 if (NULL == fBindVertexArray || |
379 NULL == fDeleteVertexArrays || | 380 NULL == fDeleteVertexArrays || |
380 NULL == fGenVertexArrays) { | 381 NULL == fGenVertexArrays) { |
381 return false; | 382 return false; |
382 } | 383 } |
383 } | 384 } |
384 } | 385 } |
385 | 386 |
386 return true; | 387 return true; |
387 } | 388 } |
OLD | NEW |