Skip to content

Commit

Permalink
Make error message more explicit when proxy texture fails to create
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Aug 14, 2023
1 parent afb4d76 commit cd89706
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion renderdoc/core/image_viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,11 @@ void ImageViewer::RefreshFile()
if(m_TextureID == ResourceId())
{
SET_ERROR_RESULT(m_Error, ResultCode::APIInitFailed,
"Couldn't create proxy texture for image file");
"Couldn't create proxy texture for image file. This is typically caused by "
"exceeding a graphics API limit for texture dimensions: %u x %u x %u "
"[%u array, %u mips] @ %s",
texDetails.width, texDetails.height, texDetails.depth, texDetails.arraysize,
texDetails.mips, texDetails.format.Name().c_str());
}

m_TexDetails.resourceId = m_TextureID;
Expand Down

0 comments on commit cd89706

Please sign in to comment.