Changeset 57174 in webkit
- Timestamp:
- Apr 6, 2010 3:55:10 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r57170 r57174 1 2010-04-06 Jarkko Sakkinen <jarkko.j.sakkinen@gmail.com> 2 3 Reviewed by Laszlo Gombos. 4 5 [Qt] WebKit does not build on Windows with --3d-canvas 6 https://bugs.webkit.org/show_bug.cgi?id=37026 7 8 * platform/graphics/GraphicsContext3D.h: 9 * platform/graphics/qt/GraphicsContext3DQt.cpp: 10 (WebCore::GraphicsContext3D::getActiveAttrib): 11 (WebCore::GraphicsContext3D::getActiveUniform): 12 1 13 2010-04-06 Abhinav Mithal <abhinav.mithal@nokia.com> 2 14 -
trunk/WebCore/platform/graphics/GraphicsContext3D.h
r57018 r57174 34 34 35 35 // FIXME: Find a better way to avoid the name confliction for NO_ERROR. 36 #if ((PLATFORM(CHROMIUM) && OS(WINDOWS)) || PLATFORM(WIN) )36 #if ((PLATFORM(CHROMIUM) && OS(WINDOWS)) || PLATFORM(WIN) || (PLATFORM(QT) && OS(WINDOWS))) 37 37 #undef NO_ERROR 38 38 #endif -
trunk/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp
r56825 r57174 53 53 #endif 54 54 55 typedef ptrdiff_t GLsizeiptrType; 56 typedef ptrdiff_t GLintptrType; 57 55 58 typedef void (APIENTRY* glActiveTextureType) (GLenum); 56 59 typedef void (APIENTRY* glAttachShaderType) (GLuint, GLuint); … … 63 66 typedef void (APIENTRY* glBlendEquationSeparateType)(GLenum, GLenum); 64 67 typedef void (APIENTRY* glBlendFuncSeparateType)(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); 65 typedef void (APIENTRY* glBufferDataType) (GLenum, GLsizeiptr , const GLvoid*, GLenum);66 typedef void (APIENTRY* glBufferSubDataType) (GLenum, GLintptr , GLsizeiptr, const GLvoid*);68 typedef void (APIENTRY* glBufferDataType) (GLenum, GLsizeiptrType, const GLvoid*, GLenum); 69 typedef void (APIENTRY* glBufferSubDataType) (GLenum, GLintptrType, GLsizeiptrType, const GLvoid*); 67 70 typedef GLenum (APIENTRY* glCheckFramebufferStatusType) (GLenum); 68 71 typedef void (APIENTRY* glCompileShaderType) (GLuint); … … 149 152 150 153 bool isContextValid() { return m_contextValid; } 154 155 151 156 152 157 glActiveTextureType activeTexture; … … 814 819 m_internal->getProgramiv(static_cast<GLuint>(program->object()), GraphicsContext3D::ACTIVE_ATTRIBUTE_MAX_LENGTH, &maxLength); 815 820 816 GLchar name[maxLength];821 GLchar* name = (GLchar*) fastMalloc(maxLength); 817 822 GLsizei nameLength; 818 823 GLint size; … … 821 826 m_internal->getActiveAttrib(static_cast<GLuint>(program->object()), index, maxLength, &nameLength, &size, &type, name); 822 827 823 if (!nameLength) 828 if (!nameLength) { 829 fastFree(name); 824 830 return false; 831 } 825 832 826 833 info.name = String(name, nameLength); … … 828 835 info.size = size; 829 836 837 fastFree(name); 830 838 return true; 831 839 } … … 843 851 m_internal->getProgramiv(static_cast<GLuint>(program->object()), GraphicsContext3D::ACTIVE_UNIFORM_MAX_LENGTH, &maxLength); 844 852 845 GLchar name[maxLength];853 GLchar* name = (GLchar*) fastMalloc(maxLength); 846 854 GLsizei nameLength; 847 855 GLint size; … … 850 858 m_internal->getActiveUniform(static_cast<GLuint>(program->object()), index, maxLength, &nameLength, &size, &type, name); 851 859 852 if (!nameLength) 860 if (!nameLength) { 861 fastFree(name); 853 862 return false; 863 } 854 864 855 865 info.name = String(name, nameLength); … … 857 867 info.size = size; 858 868 869 fastFree(name); 859 870 return true; 860 871 }
Note: See TracChangeset
for help on using the changeset viewer.