aboutsummaryrefslogtreecommitdiff
path: root/plugins/gpulib/gpu.c
diff options
context:
space:
mode:
authornotaz2012-08-18 02:37:49 +0300
committernotaz2012-10-12 00:05:08 +0300
commite929dec505f8d3692248fe0d42c84a37c994ad39 (patch)
treeb79f2f336a93618c2310bb8c70735a621aaa9957 /plugins/gpulib/gpu.c
parent99d767a0cbf8ee7406000cbac647d9681d885282 (diff)
downloadpcsx_rearmed-e929dec505f8d3692248fe0d42c84a37c994ad39.tar.gz
pcsx_rearmed-e929dec505f8d3692248fe0d42c84a37c994ad39.tar.bz2
pcsx_rearmed-e929dec505f8d3692248fe0d42c84a37c994ad39.zip
psx_gpu: switch to 1024 width again.
Diffstat (limited to 'plugins/gpulib/gpu.c')
-rw-r--r--plugins/gpulib/gpu.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/plugins/gpulib/gpu.c b/plugins/gpulib/gpu.c
index 462e301..e133f07 100644
--- a/plugins/gpulib/gpu.c
+++ b/plugins/gpulib/gpu.c
@@ -9,7 +9,6 @@
*/
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include "gpu.h"
@@ -138,21 +137,8 @@ long GPUinit(void)
{
int ret;
ret = vout_init();
-
- gpu.state.enhancement_available = 0;
ret |= renderer_init();
- if (gpu.state.enhancement_available) {
- if (gpu.enhancement_bufer == NULL)
- gpu.enhancement_bufer = malloc(2048 * 1024 * 2 + 1024 * 512 * 2);
- if (gpu.enhancement_bufer == NULL)
- gpu_log("OOM for enhancement buffer\n");
- }
- else if (gpu.enhancement_bufer != NULL) {
- free(gpu.enhancement_bufer);
- gpu.enhancement_bufer = NULL;
- }
-
gpu.state.frame_count = &gpu.zero;
gpu.state.hcnt = &gpu.zero;
gpu.frameskip.active = 0;
@@ -164,6 +150,7 @@ long GPUinit(void)
long GPUshutdown(void)
{
+ renderer_finish();
return vout_finish();
}
@@ -221,6 +208,7 @@ void GPUwriteStatus(uint32_t data)
gpu.screen.vres = vres[(gpu.status.reg >> 19) & 3];
update_width();
update_height();
+ renderer_notify_res_change();
break;
default:
if ((cmd & 0xf0) == 0x10)