Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(629)

Unified Diff: ui/gl/gl_gl_api_implementation.cc

Issue 2227603003: Fix BGRA for ES3 RenderbufferStorageMultisample (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change accidental "=" to "==" Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_gl_api_implementation.cc
diff --git a/ui/gl/gl_gl_api_implementation.cc b/ui/gl/gl_gl_api_implementation.cc
index 033a129f55883edf4993d6c63d685dafff1ffb98..4cf6515779828e5ef98bc167c69ecff310793eac 100644
--- a/ui/gl/gl_gl_api_implementation.cc
+++ b/ui/gl/gl_gl_api_implementation.cc
@@ -274,6 +274,17 @@ static void GL_BINDING_CALL CustomRenderbufferStorageMultisampleEXT(
target, samples, gl_internal_format, width, height);
}
+static void GL_BINDING_CALL
+CustomRenderbufferStorageMultisample(GLenum target,
+ GLsizei samples,
+ GLenum internalformat,
+ GLsizei width,
+ GLsizei height) {
+ GLenum gl_internal_format = GetInternalFormat(internalformat);
+ g_driver_gl.orig_fn.glRenderbufferStorageMultisampleFn(
+ target, samples, gl_internal_format, width, height);
+}
+
} // anonymous namespace
void DriverGL::InitializeCustomDynamicBindings(GLContext* context) {
@@ -306,6 +317,13 @@ void DriverGL::InitializeCustomDynamicBindings(GLContext* context) {
fn.glRenderbufferStorageMultisampleEXTFn =
reinterpret_cast<glRenderbufferStorageMultisampleEXTProc>(
CustomRenderbufferStorageMultisampleEXT);
+
+ DCHECK(orig_fn.glRenderbufferStorageMultisampleFn == NULL);
+ orig_fn.glRenderbufferStorageMultisampleFn =
+ fn.glRenderbufferStorageMultisampleFn;
+ fn.glRenderbufferStorageMultisampleFn =
+ reinterpret_cast<glRenderbufferStorageMultisampleProc>(
+ CustomRenderbufferStorageMultisample);
}
static void GL_BINDING_CALL NullDrawClearFn(GLbitfield mask) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698