Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6b21ba9

Browse files
committed
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/19708 Tested-by: Nicolas Capens <[email protected]> Reviewed-by: Alexis Hétu <[email protected]>
1 parent b7334da commit 6b21ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OpenGL/libEGL/Texture.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace sw
2424

2525
namespace egl
2626
{
27-
class Texture : public gl::NamedObject
27+
class [[clang::lto_visibility_public]] Texture : public gl::NamedObject
2828
{
2929
public:
3030
Texture(GLuint name) : NamedObject(name) {}

0 commit comments

Comments
 (0)