mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
Fixed bug and memleaks
This commit is contained in:
parent
b304551747
commit
c953bf7fc7
@ -1079,6 +1079,7 @@ Pipeline *VKContext::CreateGraphicsPipeline(const PipelineDesc &desc, const char
|
||||
gDesc.fragmentShader = vkshader->Get();
|
||||
} else {
|
||||
ERROR_LOG(G3D, "Bad stage");
|
||||
delete pipeline;
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
@ -1929,7 +1929,7 @@ void getLocalMac(SceNetEtherAddr * addr){
|
||||
mac[0] &= 0xfc;
|
||||
}
|
||||
else
|
||||
if (!ParseMacAddress(g_Config.sMACAddress.c_str(), mac)) {
|
||||
if (!ParseMacAddress(g_Config.sMACAddress, mac)) {
|
||||
ERROR_LOG(SCENET, "Error parsing mac address %s", g_Config.sMACAddress.c_str());
|
||||
memset(&mac, 0, sizeof(mac));
|
||||
}
|
||||
|
@ -1958,6 +1958,7 @@ VirtualFramebuffer *FramebufferManagerCommon::FindDownloadTempBuffer(VirtualFram
|
||||
nvfb->fbo = draw_->CreateFramebuffer({ nvfb->bufferWidth, nvfb->bufferHeight, 1, 1, channel == RASTER_DEPTH ? true : false, name });
|
||||
if (!nvfb->fbo) {
|
||||
ERROR_LOG(FRAMEBUF, "Error creating FBO! %d x %d", nvfb->renderWidth, nvfb->renderHeight);
|
||||
delete nvfb;
|
||||
return nullptr;
|
||||
}
|
||||
bvfbs_.push_back(nvfb);
|
||||
|
@ -227,7 +227,7 @@ std::string FragmentShaderDesc(const FShaderID &id) {
|
||||
case STENCIL_VALUE_INCR_4: desc << "StenIncr4 "; break;
|
||||
case STENCIL_VALUE_INCR_8: desc << "StenIncr8 "; break;
|
||||
case STENCIL_VALUE_DECR_4: desc << "StenDecr4 "; break;
|
||||
case STENCIL_VALUE_DECR_8: desc << "StenDecr4 "; break;
|
||||
case STENCIL_VALUE_DECR_8: desc << "StenDecr8 "; break;
|
||||
default: desc << "StenUnknown "; break;
|
||||
}
|
||||
} else if (id.Bit(FS_BIT_REPLACE_ALPHA_WITH_STENCIL_TYPE)) {
|
||||
|
Loading…
Reference in New Issue
Block a user