Fixed KRDatablock::Append where the data was not expanded correctly to concatenate a std::String. Converted sprite shader. Adjusted Spirv compile logging.

This commit is contained in:
2020-12-30 18:24:36 -08:00
parent 75d3f019ae
commit 76b7e64ae6
8 changed files with 57 additions and 42 deletions

View File

@@ -169,7 +169,7 @@ int main( int argc, char *argv[] )
printf("Failed to get shader compile log. (Error %i)\n", result.result);
} else {
// result.data will be a null terminated string
if (result.data != nullptr && static_cast<char*>(result.data)[0] != '\0') {
if (result.data != nullptr && result.length > 0) {
printf("Shader compile log:\n%s\n", static_cast<char *>(result.data));
}
}