Commit 6b21ba98 by Nicolas Capens Committed by Nicolas Capens

Prevent LTO from eliminating releaseTexImage() calls.

Texture::releaseTexImage() is a virtual method called by libEGL but defined by libGLESv2, so prevent LTO from treating it as undefined. This fixes running Chromium swiftshader_unittests with an 'is_official' build. Bug chromium:720933 Change-Id: I58c4441f9bd32b96703a28267837cc79b6087659 Reviewed-on: https://swiftshader-review.googlesource.com/19708Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent b7334dae
......@@ -24,7 +24,7 @@ namespace sw
namespace egl
{
class Texture : public gl::NamedObject
class [[clang::lto_visibility_public]] Texture : public gl::NamedObject
{
public:
Texture(GLuint name) : NamedObject(name) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment