mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
Remove null_renderchain
This commit is contained in:
parent
871f04e19a
commit
45cea92ba2
@ -1035,9 +1035,6 @@ ifeq ($(HAVE_PLAIN_DRM), 1)
|
||||
LIBS += -ldrm
|
||||
endif
|
||||
|
||||
OBJ += \
|
||||
gfx/drivers_renderchain/null_renderchain.o
|
||||
|
||||
ifeq ($(HAVE_GL_CONTEXT), 1)
|
||||
DEFINES += -DHAVE_OPENGL -DHAVE_GLSL
|
||||
OBJ += gfx/drivers/gl.o \
|
||||
|
@ -138,7 +138,6 @@ static bool d3d9_init_imports(d3d_video_t *d3d)
|
||||
|
||||
extern d3d_renderchain_driver_t cg_d3d9_renderchain;
|
||||
extern d3d_renderchain_driver_t hlsl_d3d9_renderchain;
|
||||
extern d3d_renderchain_driver_t null_d3d_renderchain;
|
||||
|
||||
static bool renderchain_d3d_init_first(
|
||||
enum gfx_ctx_api api,
|
||||
@ -157,7 +156,6 @@ static bool renderchain_d3d_init_first(
|
||||
#if defined(_WIN32) && defined(HAVE_HLSL)
|
||||
&hlsl_d3d9_renderchain,
|
||||
#endif
|
||||
&null_d3d_renderchain,
|
||||
NULL
|
||||
};
|
||||
unsigned i;
|
||||
|
@ -1,135 +0,0 @@
|
||||
/* RetroArch - A frontend for libretro.
|
||||
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
||||
* Copyright (C) 2011-2017 - Daniel De Matteis
|
||||
*
|
||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||
* of the GNU General Public License as published by the Free Software Found-
|
||||
* ation, either version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with RetroArch.
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <retro_inline.h>
|
||||
|
||||
#include "../video_driver.h"
|
||||
|
||||
typedef struct null_renderchain
|
||||
{
|
||||
void *empty;
|
||||
} null_renderchain_t;
|
||||
|
||||
static void null_renderchain_free(void *data)
|
||||
{
|
||||
}
|
||||
|
||||
static void *null_renderchain_new(void)
|
||||
{
|
||||
null_renderchain_t *renderchain = (null_renderchain_t*)calloc(1, sizeof(*renderchain));
|
||||
if (!renderchain)
|
||||
return NULL;
|
||||
|
||||
return renderchain;
|
||||
}
|
||||
|
||||
static bool null_renderchain_init(void *data,
|
||||
const void *info,
|
||||
void *dev_data,
|
||||
const void *final_viewport_data,
|
||||
const void *info_data,
|
||||
bool rgb32
|
||||
)
|
||||
{
|
||||
(void)data;
|
||||
(void)info;
|
||||
(void)dev_data;
|
||||
(void)final_viewport_data;
|
||||
(void)info_data;
|
||||
(void)rgb32;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static void null_renderchain_set_final_viewport(void *data,
|
||||
void *renderchain_data, const void *viewport_data)
|
||||
{
|
||||
(void)data;
|
||||
(void)renderchain_data;
|
||||
(void)viewport_data;
|
||||
}
|
||||
|
||||
static bool null_renderchain_render(void *data, const void *frame,
|
||||
unsigned width, unsigned height,
|
||||
unsigned pitch, unsigned rotation)
|
||||
{
|
||||
(void)data;
|
||||
(void)frame;
|
||||
(void)width;
|
||||
(void)height;
|
||||
(void)pitch;
|
||||
(void)rotation;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool null_renderchain_add_lut(void *data,
|
||||
const char *id, const char *path, bool smooth)
|
||||
{
|
||||
(void)data;
|
||||
(void)id;
|
||||
(void)path;
|
||||
(void)smooth;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool null_renderchain_add_pass(void *data, const void *info_data)
|
||||
{
|
||||
(void)data;
|
||||
(void)info_data;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static void null_renderchain_add_state_tracker(void *data, void *tracker_data)
|
||||
{
|
||||
(void)data;
|
||||
(void)tracker_data;
|
||||
}
|
||||
|
||||
static void null_renderchain_convert_geometry(
|
||||
void *data, const void *info_data,
|
||||
unsigned *out_width, unsigned *out_height,
|
||||
unsigned width, unsigned height,
|
||||
void *final_viewport_data)
|
||||
{
|
||||
(void)data;
|
||||
(void)info_data;
|
||||
(void)out_width;
|
||||
(void)out_height;
|
||||
(void)width;
|
||||
(void)height;
|
||||
(void)final_viewport_data;
|
||||
}
|
||||
|
||||
d3d_renderchain_driver_t null_d3d_renderchain = {
|
||||
null_renderchain_free,
|
||||
null_renderchain_new,
|
||||
null_renderchain_init,
|
||||
null_renderchain_set_final_viewport,
|
||||
null_renderchain_add_pass,
|
||||
null_renderchain_add_lut,
|
||||
null_renderchain_add_state_tracker,
|
||||
null_renderchain_render,
|
||||
null_renderchain_convert_geometry,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
"null",
|
||||
};
|
@ -394,7 +394,6 @@ VIDEO DRIVER
|
||||
#include "../gfx/drivers/drm_gfx.c"
|
||||
#endif
|
||||
|
||||
#include "../gfx/drivers_renderchain/null_renderchain.c"
|
||||
#include "../gfx/display_servers/dispserv_null.c"
|
||||
|
||||
#ifdef HAVE_OPENGL
|
||||
|
Loading…
x
Reference in New Issue
Block a user