From 8e092998c2ff78d033e36d20710485b43da10bae Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Mon, 15 Dec 2014 21:02:16 +0100 Subject: [PATCH] Add SGX 543 to the halls of the damned.. I mean the ones with terrible precision --- gfx_es2/gpu_features.cpp | 3 ++- net/http_headers.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gfx_es2/gpu_features.cpp b/gfx_es2/gpu_features.cpp index 67d205ec88..f230b7c96d 100644 --- a/gfx_es2/gpu_features.cpp +++ b/gfx_es2/gpu_features.cpp @@ -24,7 +24,8 @@ void ProcessGPUFeatures() { } if (gl_extensions.gpuVendor == GPU_VENDOR_POWERVR) { - if (!strcmp(gl_extensions.model, "PowerVR SGX 540") || + if (!strcmp(gl_extensions.model, "PowerVR SGX 543") || + !strcmp(gl_extensions.model, "PowerVR SGX 540") || !strcmp(gl_extensions.model, "PowerVR SGX 530") || !strcmp(gl_extensions.model, "PowerVR SGX 520") ) { WLOG("GL DRIVER BUG: PVR with bad and terrible precision"); diff --git a/net/http_headers.cpp b/net/http_headers.cpp index 2e7103ca51..c0cafd6c62 100644 --- a/net/http_headers.cpp +++ b/net/http_headers.cpp @@ -128,6 +128,7 @@ int RequestHeader::ParseHttpHeader(const char *buffer) { } delete [] key; + return 0; } void RequestHeader::ParseHeaders(int fd) {