mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Windows: Fix and suppress some analysis warnings
This fixes warnings that are emitted when building with the `-analyze` flag enabled.
This commit is contained in:
parent
54423f6583
commit
31a7c62baf
83 changed files with 476 additions and 230 deletions
|
|
@ -108,9 +108,12 @@ struct CachedImageList : public ReferenceCountedObject,
|
|||
|
||||
TextureInfo getTextureInfo()
|
||||
{
|
||||
if (pixelData == nullptr)
|
||||
return {};
|
||||
|
||||
TextureInfo t;
|
||||
|
||||
if (textureNeedsReloading && pixelData != nullptr)
|
||||
if (textureNeedsReloading)
|
||||
{
|
||||
textureNeedsReloading = false;
|
||||
texture.loadImage (Image (*pixelData));
|
||||
|
|
@ -1049,7 +1052,11 @@ struct StateHelpers
|
|||
|
||||
void bindTexture (GLuint textureID) noexcept
|
||||
{
|
||||
jassert (currentActiveTexture >= 0);
|
||||
if (currentActiveTexture < 0 || numTextures <= currentActiveTexture)
|
||||
{
|
||||
jassertfalse;
|
||||
return;
|
||||
}
|
||||
|
||||
if (currentTextureID[currentActiveTexture] != textureID)
|
||||
{
|
||||
|
|
@ -1068,7 +1075,8 @@ struct StateHelpers
|
|||
}
|
||||
|
||||
private:
|
||||
GLuint currentTextureID[3];
|
||||
static constexpr auto numTextures = 3;
|
||||
GLuint currentTextureID[numTextures];
|
||||
int texturesEnabled = 0, currentActiveTexture = -1;
|
||||
const OpenGLContext& context;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue