|
|
@@ -139,19 +139,14 @@ static bool graphics_init(struct graphics_subsystem *graphics)
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
-int gs_create(graphics_t **pgraphics, const char *module,
|
|
|
- const struct gs_init_data *data)
|
|
|
+int gs_create(graphics_t **pgraphics, const char *module, uint32_t adapter)
|
|
|
{
|
|
|
- struct gs_init_data new_data = *data;
|
|
|
int errcode = GS_ERROR_FAIL;
|
|
|
|
|
|
graphics_t *graphics = bzalloc(sizeof(struct graphics_subsystem));
|
|
|
pthread_mutex_init_value(&graphics->mutex);
|
|
|
pthread_mutex_init_value(&graphics->effect_mutex);
|
|
|
|
|
|
- if (!new_data.num_backbuffers)
|
|
|
- new_data.num_backbuffers = 1;
|
|
|
-
|
|
|
graphics->module = os_dlopen(module);
|
|
|
if (!graphics->module) {
|
|
|
errcode = GS_ERROR_MODULE_NOT_FOUND;
|
|
|
@@ -162,7 +157,7 @@ int gs_create(graphics_t **pgraphics, const char *module,
|
|
|
module))
|
|
|
goto error;
|
|
|
|
|
|
- errcode = graphics->exports.device_create(&graphics->device, &new_data);
|
|
|
+ errcode = graphics->exports.device_create(&graphics->device, adapter);
|
|
|
if (errcode != GS_SUCCESS)
|
|
|
goto error;
|
|
|
|