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

Unified Diff: content/common/gpu/texture_image_transport_surface.cc

Issue 189133004: WebGL TexParameterf and GetTexParameterf needs to handle float param correctly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/texture_image_transport_surface.cc
diff --git a/content/common/gpu/texture_image_transport_surface.cc b/content/common/gpu/texture_image_transport_surface.cc
index 259131fed86ed4c773a3eeb8d235856344360b0d..bd4a90ca1bbd3c5bb0bfcb8f69c65718485e1ec5 100644
--- a/content/common/gpu/texture_image_transport_surface.cc
+++ b/content/common/gpu/texture_image_transport_surface.cc
@@ -397,26 +397,26 @@ void TextureImageTransportSurface::CreateBackTexture() {
current_size_.width(), current_size_.height(), 0,
GL_RGBA, GL_UNSIGNED_BYTE, NULL);
gpu::gles2::ErrorState* error_state = decoder->GetErrorState();
- texture_manager->SetParameter("Backbuffer",
- error_state,
- backbuffer_.get(),
- GL_TEXTURE_MIN_FILTER,
- GL_LINEAR);
- texture_manager->SetParameter("Backbuffer",
- error_state,
- backbuffer_.get(),
- GL_TEXTURE_MAG_FILTER,
- GL_LINEAR);
- texture_manager->SetParameter("Backbuffer",
- error_state,
- backbuffer_.get(),
- GL_TEXTURE_WRAP_S,
- GL_CLAMP_TO_EDGE);
- texture_manager->SetParameter("Backbuffer",
- error_state,
- backbuffer_.get(),
- GL_TEXTURE_WRAP_T,
- GL_CLAMP_TO_EDGE);
+ texture_manager->SetParameteri("Backbuffer",
+ error_state,
+ backbuffer_.get(),
+ GL_TEXTURE_MIN_FILTER,
+ GL_LINEAR);
+ texture_manager->SetParameteri("Backbuffer",
+ error_state,
+ backbuffer_.get(),
+ GL_TEXTURE_MAG_FILTER,
+ GL_LINEAR);
+ texture_manager->SetParameteri("Backbuffer",
+ error_state,
+ backbuffer_.get(),
+ GL_TEXTURE_WRAP_S,
+ GL_CLAMP_TO_EDGE);
+ texture_manager->SetParameteri("Backbuffer",
+ error_state,
+ backbuffer_.get(),
+ GL_TEXTURE_WRAP_T,
+ GL_CLAMP_TO_EDGE);
texture_manager->SetLevelInfo(backbuffer_.get(),
GL_TEXTURE_2D,
0,
« no previous file with comments | « no previous file | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698