diff --git a/Source/WebKit/UIProcess/API/wpe/qt/WPEQtViewBackend.cpp b/Source/WebKit/UIProcess/API/wpe/qt/WPEQtViewBackend.cpp index 13fd37aeff2b6..49cfdbce2d944 100644 --- a/Source/WebKit/UIProcess/API/wpe/qt/WPEQtViewBackend.cpp +++ b/Source/WebKit/UIProcess/API/wpe/qt/WPEQtViewBackend.cpp @@ -106,10 +106,11 @@ WPEQtViewBackend::WPEQtViewBackend(const QSizeF& size, EGLDisplay display, EGLCo m_program = glFunctions->glCreateProgram(); glFunctions->glAttachShader(m_program, vertexShader); glFunctions->glAttachShader(m_program, fragmentShader); - glFunctions->glLinkProgram(m_program); glFunctions->glBindAttribLocation(m_program, 0, "pos"); glFunctions->glBindAttribLocation(m_program, 1, "texture"); + + glFunctions->glLinkProgram(m_program); m_textureUniform = glFunctions->glGetUniformLocation(m_program, "u_texture"); static struct wpe_view_backend_exportable_fdo_egl_client exportableClient = { diff --git a/Tools/wpe/backends/WindowViewBackend.cpp b/Tools/wpe/backends/WindowViewBackend.cpp index de9884b34e70c..ce05a846a8fc9 100644 --- a/Tools/wpe/backends/WindowViewBackend.cpp +++ b/Tools/wpe/backends/WindowViewBackend.cpp @@ -599,10 +599,11 @@ WindowViewBackend::WindowViewBackend(uint32_t width, uint32_t height) m_program = glCreateProgram(); glAttachShader(m_program, vertexShader); glAttachShader(m_program, fragmentShader); - glLinkProgram(m_program); glBindAttribLocation(m_program, 0, "pos"); glBindAttribLocation(m_program, 1, "texture"); + + glLinkProgram(m_program); m_textureUniform = glGetUniformLocation(m_program, "u_texture"); }