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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 NULL == fBlitFramebuffer) { | 316 NULL == fBlitFramebuffer) { |
317 return false; | 317 return false; |
318 } | 318 } |
319 } | 319 } |
320 if (extensions.has("GL_APPLE_framebuffer_multisample")) { | 320 if (extensions.has("GL_APPLE_framebuffer_multisample")) { |
321 if (NULL == fRenderbufferStorageMultisample || | 321 if (NULL == fRenderbufferStorageMultisample || |
322 NULL == fResolveMultisampleFramebuffer) { | 322 NULL == fResolveMultisampleFramebuffer) { |
323 return false; | 323 return false; |
324 } | 324 } |
325 } | 325 } |
| 326 if (extensions.has("GL_IMG_multisampled_render_to_texture")) { |
| 327 if (NULL == fRenderbufferStorageMultisample || |
| 328 NULL == fFramebufferTexture2DMultisample) { |
| 329 return false; |
| 330 } |
| 331 } |
326 } | 332 } |
327 | 333 |
328 // On ES buffer mapping is an extension. On Desktop | 334 // On ES buffer mapping is an extension. On Desktop |
329 // buffer mapping was part of original VBO extension | 335 // buffer mapping was part of original VBO extension |
330 // which we require. | 336 // which we require. |
331 if (kDesktop_GrGLBinding == binding || extensions.has("GL_OES_mapbuffer")) { | 337 if (kDesktop_GrGLBinding == binding || extensions.has("GL_OES_mapbuffer")) { |
332 if (NULL == fMapBuffer || | 338 if (NULL == fMapBuffer || |
333 NULL == fUnmapBuffer) { | 339 NULL == fUnmapBuffer) { |
334 return false; | 340 return false; |
335 } | 341 } |
(...skipping 26 matching lines...) Expand all Loading... |
362 if (NULL == fBindVertexArray || | 368 if (NULL == fBindVertexArray || |
363 NULL == fDeleteVertexArrays || | 369 NULL == fDeleteVertexArrays || |
364 NULL == fGenVertexArrays) { | 370 NULL == fGenVertexArrays) { |
365 return false; | 371 return false; |
366 } | 372 } |
367 } | 373 } |
368 } | 374 } |
369 | 375 |
370 return true; | 376 return true; |
371 } | 377 } |
OLD | NEW |