Skip to content

Commit d58e30a

Browse files
Daniel K. O. (dkosmari)Maschell
authored andcommitted
Fix initialization of texture sampler.
1 parent d188b10 commit d58e30a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

source/gfx/SplashScreenDrawer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,7 @@ SplashScreenDrawer::SplashScreenDrawer(const std::filesystem::path &splash_base_
209209
memcpy(coordsUploadBuffer, mTexCoords, mTexCoordBuffer.elemSize * mTexCoordBuffer.elemCount);
210210
GX2RUnlockBufferEx(&mTexCoordBuffer, GX2R_RESOURCE_BIND_NONE);
211211

212-
GX2Sampler sampler;
213-
GX2InitSampler(&sampler, GX2_TEX_CLAMP_MODE_CLAMP, GX2_TEX_XY_FILTER_MODE_LINEAR);
212+
GX2InitSampler(&mSampler, GX2_TEX_CLAMP_MODE_CLAMP, GX2_TEX_XY_FILTER_MODE_LINEAR);
214213
}
215214

216215
void SplashScreenDrawer::Draw() {

0 commit comments

Comments
 (0)