OLD | NEW |
1 // | 1 // |
2 // Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved. | 2 // Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 // | 5 // |
6 | 6 |
7 // Context.cpp: Implements the gl::Context class, managing all GL state and perf
orming | 7 // Context.cpp: Implements the gl::Context class, managing all GL state and perf
orming |
8 // rendering operations. It is the GLES2 specific implementation of EGLContext. | 8 // rendering operations. It is the GLES2 specific implementation of EGLContext. |
9 | 9 |
10 #include "libGLESv2/Context.h" | 10 #include "libGLESv2/Context.h" |
(...skipping 3946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3957 extensionString += "GL_EXT_texture_compression_dxt1 "; | 3957 extensionString += "GL_EXT_texture_compression_dxt1 "; |
3958 } | 3958 } |
3959 | 3959 |
3960 if (supportsTextureFilterAnisotropy()) | 3960 if (supportsTextureFilterAnisotropy()) |
3961 { | 3961 { |
3962 extensionString += "GL_EXT_texture_filter_anisotropic "; | 3962 extensionString += "GL_EXT_texture_filter_anisotropic "; |
3963 } | 3963 } |
3964 | 3964 |
3965 extensionString += "GL_EXT_texture_format_BGRA8888 "; | 3965 extensionString += "GL_EXT_texture_format_BGRA8888 "; |
3966 extensionString += "GL_EXT_texture_storage "; | 3966 extensionString += "GL_EXT_texture_storage "; |
| 3967 extensionString += "GL_EXT_frag_depth "; |
3967 | 3968 |
3968 // ANGLE-specific extensions | 3969 // ANGLE-specific extensions |
3969 if (supportsDepthTextures()) | 3970 if (supportsDepthTextures()) |
3970 { | 3971 { |
3971 extensionString += "GL_ANGLE_depth_texture "; | 3972 extensionString += "GL_ANGLE_depth_texture "; |
3972 } | 3973 } |
3973 | 3974 |
3974 extensionString += "GL_ANGLE_framebuffer_blit "; | 3975 extensionString += "GL_ANGLE_framebuffer_blit "; |
3975 if (getMaxSupportedSamples() != 0) | 3976 if (getMaxSupportedSamples() != 0) |
3976 { | 3977 { |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4541 void glMakeCurrent(gl::Context *context, egl::Display *display, egl::Surface *su
rface) | 4542 void glMakeCurrent(gl::Context *context, egl::Display *display, egl::Surface *su
rface) |
4542 { | 4543 { |
4543 gl::makeCurrent(context, display, surface); | 4544 gl::makeCurrent(context, display, surface); |
4544 } | 4545 } |
4545 | 4546 |
4546 gl::Context *glGetCurrentContext() | 4547 gl::Context *glGetCurrentContext() |
4547 { | 4548 { |
4548 return gl::getContext(); | 4549 return gl::getContext(); |
4549 } | 4550 } |
4550 } | 4551 } |
OLD | NEW |