Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Plugins/ExternalTexture/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ set(SOURCES

add_library(ExternalTexture ${SOURCES})
warnings_as_errors(ExternalTexture)
if(GRAPHICS_API STREQUAL "OpenGL" AND MSVC)
target_compile_options(ExternalTexture PRIVATE /wd4702)
endif()

target_include_directories(ExternalTexture
PUBLIC "Include")
Expand Down
11 changes: 11 additions & 0 deletions Plugins/ExternalTexture/Source/ExternalTexture_OpenGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

namespace Babylon::Plugins
{
// Suppress C4702 for the shared dispatcher - Impl stubs always throw,
// making the dispatcher's post-call code unreachable.
class ExternalTexture::Impl final : public ImplBase
{
public:
Expand All @@ -36,4 +38,13 @@ namespace Babylon::Plugins
};
}

#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable : 4702) // unreachable code (Impl stubs always throw)
#endif

#include "ExternalTexture_Shared.h"

#if defined(_MSC_VER)
#pragma warning(pop)
#endif