Skip to content

Commit 3e64869

Browse files
Merge pull request #44 from Crisspl/spirv-optimizer
Ex22 and other minor fixes
2 parents 1fab76f + 615c810 commit 3e64869

File tree

3 files changed

+132
-121
lines changed

3 files changed

+132
-121
lines changed

source/Nabla/COpenGLDriver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ class COpenGLDriver final : public CNullDriver, public COpenGLExtensionHandler
453453
default:
454454
{
455455
GLint res = GL_FALSE;
456-
extGlGetInternalformativ(GL_TEXTURE_2D, getSizedOpenGLFormatFromOurFormat(_fmt), GL_COLOR_RENDERABLE, sizeof(res), &res);
456+
extGlGetInternalformativ(GL_TEXTURE_2D, getSizedOpenGLFormatFromOurFormat(_fmt), GL_COLOR_RENDERABLE, 1, &res);
457457
return res==GL_TRUE;
458458
}
459459
}

src/nbl/ext/RadeonRays/RadeonRays.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,11 @@ void Manager::makeInstance( NblInstanceRRInstanceCache& instanceCache, MockScene
124124
if (!gpumeshbuffer)
125125
continue;
126126
::RadeonRays::Shape* shape = cpuAssociation.second;
127-
auto successAndLocation = gpuCache.emplace(gpumeshbuffer,shape);
128-
if (gpumeshbuffer == mb)
129-
{
130-
found = successAndLocation.first;
131-
break;
132-
}
127+
gpuCache.emplace(gpumeshbuffer,shape);
133128
}
134129
notRefreshedAlready = false;
130+
131+
found = gpuCache.find(mb);
135132
}
136133
if (found==gpuCache.end())
137134
continue;

0 commit comments

Comments
 (0)