Changeset 57267 in webkit
- Timestamp:
- Apr 8, 2010 2:23:00 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r57263 r57267 1 2010-04-08 Jarkko Sakkinen <jarkko.sakkinen@tieto.com> 2 3 Reviewed by Simon Hausmann. 4 5 [Qt] Remove shaderSource manipulation from GraphicsContext3DQt.cpp 6 https://bugs.webkit.org/show_bug.cgi?id=37226 7 8 * platform/graphics/qt/GraphicsContext3DQt.cpp: 9 (WebCore::GraphicsContext3D::shaderSource): 10 1 11 2010-04-08 Chris Evans <cevans@chromium.org> 2 12 -
trunk/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp
r57174 r57267 1031 1031 } 1032 1032 1033 void GraphicsContext3D::shaderSource(WebGLShader* shader, const String& s tring)1033 void GraphicsContext3D::shaderSource(WebGLShader* shader, const String& source) 1034 1034 { 1035 1035 ASSERT(shader); … … 1037 1037 m_internal->m_glWidget->makeCurrent(); 1038 1038 1039 // Force the use of GLSL 1.0: 1040 // https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/WebGL-spec.html#4.4 1041 // FIXME: Lines beginning with "#version" should be stripped out. 1042 1043 String prepared; 1044 1045 prepared.append("#version 100\n"); 1046 #if defined(QT_OPENGL_ES_2) 1047 prepared.append("precision mediump float;\n"); 1048 #endif 1049 prepared.append(string); 1050 1051 CString preparedCS = prepared.utf8(); 1052 const char* data = preparedCS.data(); 1053 int length = prepared.length(); 1039 CString sourceCS = source.utf8(); 1040 const char* data = sourceCS.data(); 1041 int length = source.length(); 1054 1042 m_internal->shaderSource((GLuint) shader->object(), /* count */ 1, &data, &length); 1055 1043 }
Note: See TracChangeset
for help on using the changeset viewer.