mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Change a Crash() to an _assert_msg_
This commit is contained in:
1 parent
71aa4c318d
commit
f7df69f50c
2 files changed
+4
-4
No files matched your search
@@ -386,7 +386,8 @@ void GLQueueRunner::RunInitSteps(const std::vector<GLRInitStep> &steps, bool ski
|
||||
boundTexture = tex->texture;
|
||||
}
|
||||
if (!step.texture_image.data && step.texture_image.allocType != GLRAllocType::NONE)
|
||||
Crash();
|
||||
_assert_msg_(false, "missing texture data");
|
||||
|
||||
// For things to show in RenderDoc, need to split into glTexImage2D(..., nullptr) and glTexSubImage.
|
||||
|
||||
GLenum internalFormat, format, type;
|
||||
@@ -444,7 +445,7 @@ void GLQueueRunner::RunInitSteps(const std::vector<GLRInitStep> &steps, bool ski
|
||||
}
|
||||
default:
|
||||
CHECK_GL_ERROR_IF_DEBUG();
|
||||
Crash();
|
||||
_assert_msg_(false, "Bad GLRInitStepType: %d", (int)step.stepType);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1348,7 +1349,7 @@ void GLQueueRunner::PerformRenderPass(const GLRStep &step, bool first, bool last
|
||||
CHECK_GL_ERROR_IF_DEBUG();
|
||||
break;
|
||||
default:
|
||||
Crash();
|
||||
_assert_msg_(false, "Bad GLRRenderCommand: %d", (int)c.cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ enum class GLRRenderCommand : uint8_t {
|
||||
GENMIPS,
|
||||
DRAW,
|
||||
DRAW_INDEXED,
|
||||
PUSH_CONSTANTS,
|
||||
TEXTURE_SUBIMAGE,
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user