diff options
Diffstat (limited to 'ui/gl/gl_surface.cc')
-rw-r--r-- | ui/gl/gl_surface.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc index e7efc12..b9040ec 100644 --- a/ui/gl/gl_surface.cc +++ b/ui/gl/gl_surface.cc @@ -75,8 +75,7 @@ bool GLSurface::InitializeOneOff() { GLSurface::GLSurface() {} -bool GLSurface::Initialize() -{ +bool GLSurface::Initialize() { return true; } @@ -92,6 +91,16 @@ std::string GLSurface::GetExtensions() { return std::string(""); } +bool GLSurface::HasExtension(const char* name) { + std::string extensions = GetExtensions(); + extensions += " "; + + std::string delimited_name(name); + delimited_name += " "; + + return extensions.find(delimited_name) != std::string::npos; +} + unsigned int GLSurface::GetBackingFrameBufferObject() { return 0; } |