OLD | NEW |
1 #include "precompiled.h" | 1 #include "precompiled.h" |
2 // | 2 // |
3 // Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved. | 3 // Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved. |
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 // Context.cpp: Implements the gl::Context class, managing all GL state and perf
orming | 8 // Context.cpp: Implements the gl::Context class, managing all GL state and perf
orming |
9 // rendering operations. It is the GLES2 specific implementation of EGLContext. | 9 // rendering operations. It is the GLES2 specific implementation of EGLContext. |
10 | 10 |
(...skipping 2564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2575 { | 2575 { |
2576 extensionString += "GL_EXT_texture_format_BGRA8888 "; | 2576 extensionString += "GL_EXT_texture_format_BGRA8888 "; |
2577 } | 2577 } |
2578 | 2578 |
2579 if (mRenderer->getMaxRenderTargets() > 1) | 2579 if (mRenderer->getMaxRenderTargets() > 1) |
2580 { | 2580 { |
2581 extensionString += "GL_EXT_draw_buffers "; | 2581 extensionString += "GL_EXT_draw_buffers "; |
2582 } | 2582 } |
2583 | 2583 |
2584 extensionString += "GL_EXT_texture_storage "; | 2584 extensionString += "GL_EXT_texture_storage "; |
| 2585 extensionString += "GL_EXT_frag_depth "; |
2585 | 2586 |
2586 // ANGLE-specific extensions | 2587 // ANGLE-specific extensions |
2587 if (supportsDepthTextures()) | 2588 if (supportsDepthTextures()) |
2588 { | 2589 { |
2589 extensionString += "GL_ANGLE_depth_texture "; | 2590 extensionString += "GL_ANGLE_depth_texture "; |
2590 } | 2591 } |
2591 | 2592 |
2592 extensionString += "GL_ANGLE_framebuffer_blit "; | 2593 extensionString += "GL_ANGLE_framebuffer_blit "; |
2593 if (getMaxSupportedSamples() != 0) | 2594 if (getMaxSupportedSamples() != 0) |
2594 { | 2595 { |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2957 { | 2958 { |
2958 gl::makeCurrent(context, display, surface); | 2959 gl::makeCurrent(context, display, surface); |
2959 } | 2960 } |
2960 | 2961 |
2961 gl::Context *glGetCurrentContext() | 2962 gl::Context *glGetCurrentContext() |
2962 { | 2963 { |
2963 return gl::getContext(); | 2964 return gl::getContext(); |
2964 } | 2965 } |
2965 | 2966 |
2966 } | 2967 } |
OLD | NEW |