Changeset 139182 in webkit
- Timestamp:
- Jan 9, 2013 3:25:12 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r139174 r139182 1 2013-01-09 Zeno Albisser <zeno@webkit.org> 2 3 [Qt][Mac] GraphicsSurface does not need glEnable/glDisable for texture targets. 4 https://bugs.webkit.org/show_bug.cgi?id=106310 5 6 glEnable/glDisable for texture targets is only necessary 7 when using the fixed function pipeline. 8 Enabling or disabling the target might cause unexpected 9 behavior to texture bindings and is therefore considered harmful. 10 11 Reviewed by Noam Rosenthal. 12 13 * platform/graphics/surfaces/mac/GraphicsSurfaceMac.cpp: 14 (WebCore::createTexture): 15 (WebCore::GraphicsSurfacePrivate::copyFromTexture): 16 (WebCore::GraphicsSurface::platformCopyToGLTexture): 17 1 18 2013-01-09 Kunihiko Sakamoto <ksakamoto@chromium.org> 2 19 -
trunk/Source/WebCore/platform/graphics/surfaces/mac/GraphicsSurfaceMac.cpp
r137498 r139182 51 51 52 52 GLint prevTexture; 53 GLboolean wasEnabled = glIsEnabled(GL_TEXTURE_RECTANGLE_ARB);54 53 glGetIntegerv(GL_TEXTURE_RECTANGLE_ARB, &prevTexture); 55 if (!wasEnabled)56 glEnable(GL_TEXTURE_RECTANGLE_ARB);57 54 58 55 glGenTextures(1, &texture); … … 65 62 66 63 glBindTexture(GL_TEXTURE_RECTANGLE_ARB, prevTexture); 67 if (!wasEnabled)68 glDisable(GL_TEXTURE_RECTANGLE_ARB);69 64 70 65 return texture; … … 217 212 218 213 makeCurrent(); 219 glEnable(GL_TEXTURE_RECTANGLE_ARB);220 214 221 215 int x = sourceRect.x(); … … 320 314 glGenFramebuffers(1, &m_fbo); 321 315 glBindTexture(GL_TEXTURE_RECTANGLE_ARB, 0); 322 glEnable(GL_TEXTURE_RECTANGLE_ARB);323 glEnable(target);324 316 glBindTexture(target, id); 325 317 glBindFramebuffer(GL_READ_FRAMEBUFFER, m_fbo);
Note: See TracChangeset
for help on using the changeset viewer.