Skip to content

Commit

Permalink
Limit to Windows to fix linker error
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jan 18, 2024
1 parent d51da3c commit d45f95e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Core/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,15 @@ void Core_RunLoop(GraphicsContext *ctx) {
return;
}

#if PPSSPP_PLATFORM(WINDOWS)
// This can only be accessed from Windows currently, and causes linking errors with headless etc.
if (g_restartGraphics) {
// Used for debugging only.
NativeShutdownGraphics();
NativeInitGraphics(ctx);
g_restartGraphics = false;
}
#endif

NativeFrame(ctx);
}
Expand Down
2 changes: 1 addition & 1 deletion GPU/Common/TextureReplacer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,12 +773,12 @@ void TextureReplacer::NotifyTextureDecoded(ReplacedTexture *texture, const Repla

ReplacementCacheKey replacementKey(cachekey, replacedInfo.hash);
auto it = savedCache_.find(replacementKey);
double now = time_now_d();
if (it != savedCache_.end()) {
// We've already saved this texture. Ignore it.
// We don't really care about changing the scale factor during runtime, only confusing.
return;
}
double now = time_now_d();

// Width/height of the image to save.
int w = scaledW;
Expand Down

0 comments on commit d45f95e

Please sign in to comment.