mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
[GPU/HLES] 'fs' its already NULL, removed excess delete and bufferState_ always ATRAC_STATUS_HALFWAY_BUFFER
This commit is contained in:
1 parent
22fdf6624c
commit
f625f18eba
2 files changed
+1
-4
No files matched your search
@@ -1795,8 +1795,7 @@ static u32 sceAtracResetPlayPosition(int atracID, int sample, int bytesWrittenFi
|
||||
// Did we transition to a full buffer?
|
||||
if (atrac->first_.size >= atrac->first_.filesize) {
|
||||
atrac->first_.size = atrac->first_.filesize;
|
||||
if (atrac->bufferState_ == ATRAC_STATUS_HALFWAY_BUFFER)
|
||||
atrac->bufferState_ = ATRAC_STATUS_ALL_DATA_LOADED;
|
||||
atrac->bufferState_ = ATRAC_STATUS_ALL_DATA_LOADED;
|
||||
}
|
||||
} else {
|
||||
if (bufferInfo.first.filePos > atrac->first_.filesize) {
|
||||
|
||||
@@ -1109,7 +1109,6 @@ bool ShaderManagerGLES::LoadCache(File::IOFile &f) {
|
||||
// Give up on using the cache, just bail. We can't safely create the fallback shaders here
|
||||
// without trying to deduce the vertType from the VSID.
|
||||
ERROR_LOG(G3D, "Failed to compile a vertex shader loading from cache. Skipping rest of shader cache.");
|
||||
delete vs;
|
||||
pending.Clear();
|
||||
return false;
|
||||
}
|
||||
@@ -1127,7 +1126,6 @@ bool ShaderManagerGLES::LoadCache(File::IOFile &f) {
|
||||
// Give up on using the cache - something went wrong.
|
||||
// We'll still keep the shaders we generated so far around.
|
||||
ERROR_LOG(G3D, "Failed to compile a fragment shader loading from cache. Skipping rest of shader cache.");
|
||||
delete fs;
|
||||
pending.Clear();
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user