mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Windows: Fix build warnings when JUCE_DISABLE_ASSERTIONS is set
This commit is contained in:
parent
6e9b7dad9a
commit
8754d87900
6 changed files with 13 additions and 16 deletions
|
|
@ -421,14 +421,12 @@ struct Direct2DBitmap
|
|||
|
||||
JUCE_D2DMETRICS_SCOPED_ELAPSED_TIME (Direct2DMetricsHub::getInstance()->imageContextMetrics, createBitmapTime);
|
||||
|
||||
#if JUCE_DEBUG
|
||||
// Verify that the GPU can handle a bitmap of this size
|
||||
//
|
||||
// If you need a bitmap larger than this, you'll need to either split it up into multiple bitmaps
|
||||
// or use a software image (see SoftwareImageType).
|
||||
auto maxBitmapSize = deviceContext->GetMaximumBitmapSize();
|
||||
jassert (size.width <= maxBitmapSize && size.height <= maxBitmapSize);
|
||||
#endif
|
||||
const auto maxBitmapSize = deviceContext->GetMaximumBitmapSize();
|
||||
jassertquiet (size.width <= maxBitmapSize && size.height <= maxBitmapSize);
|
||||
|
||||
const auto pixelFormat = D2D1::PixelFormat (format == Image::SingleChannel
|
||||
? DXGI_FORMAT_A8_UNORM
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue