mirror of
https://github.com/holub/mame
synced 2025-04-23 17:00:53 +03:00
Fix compile with latest BGFX (nw)
This commit is contained in:
parent
fadb547f63
commit
a64328499c
@ -270,7 +270,7 @@ bool bgfx_chain_entry::setup_view(int view, uint16_t screen_width, uint16_t scre
|
||||
|
||||
void bgfx_chain_entry::put_screen_buffer(render_primitive* prim, bgfx::TransientVertexBuffer* buffer) const
|
||||
{
|
||||
if (bgfx::checkAvailTransientVertexBuffer(6, ScreenVertex::ms_decl))
|
||||
if (6 == bgfx::getAvailTransientVertexBuffer(6, ScreenVertex::ms_decl))
|
||||
{
|
||||
bgfx::allocTransientVertexBuffer(buffer, 6, ScreenVertex::ms_decl);
|
||||
}
|
||||
|
@ -9,6 +9,9 @@
|
||||
//
|
||||
//============================================================
|
||||
|
||||
#include <bx/readerwriter.h>
|
||||
#include <bx/crtimpl.h>
|
||||
|
||||
#include "emu.h"
|
||||
#include "../frontend/mame/ui/slider.h"
|
||||
|
||||
@ -18,8 +21,6 @@
|
||||
#include <rapidjson/document.h>
|
||||
#include <rapidjson/error/en.h>
|
||||
|
||||
#include <bx/readerwriter.h>
|
||||
#include <bx/crtimpl.h>
|
||||
#include "bgfxutil.h"
|
||||
|
||||
#include "chainmanager.h"
|
||||
|
@ -12,13 +12,13 @@
|
||||
#include <rapidjson/document.h>
|
||||
#include <rapidjson/error/en.h>
|
||||
|
||||
#include "emu.h"
|
||||
|
||||
#include <bgfx/bgfxplatform.h>
|
||||
#include <bgfx/bgfx.h>
|
||||
#include <bx/readerwriter.h>
|
||||
#include <bx/crtimpl.h>
|
||||
|
||||
#include "emu.h"
|
||||
|
||||
#include <bgfx/bgfx.h>
|
||||
|
||||
#include "effectmanager.h"
|
||||
#include "effectreader.h"
|
||||
#include "effect.h"
|
||||
|
@ -9,14 +9,14 @@
|
||||
//
|
||||
//============================================================
|
||||
|
||||
#include "emu.h"
|
||||
|
||||
#include <bgfx/bgfxplatform.h>
|
||||
#include <bgfx/bgfx.h>
|
||||
#include <bx/fpumath.h>
|
||||
#include <bx/readerwriter.h>
|
||||
#include <bx/crtimpl.h>
|
||||
|
||||
#include "emu.h"
|
||||
|
||||
#include <bgfx/bgfx.h>
|
||||
|
||||
#include "shadermanager.h"
|
||||
|
||||
shader_manager::~shader_manager()
|
||||
|
@ -5,6 +5,9 @@
|
||||
// drawbgfx.cpp - BGFX renderer
|
||||
//
|
||||
//============================================================
|
||||
#include <bx/fpumath.h>
|
||||
#include <bx/readerwriter.h>
|
||||
|
||||
#if defined(SDLMAME_WIN32) || defined(OSD_WINDOWS) || defined(OSD_UWP)
|
||||
// standard windows headers
|
||||
#include <windows.h>
|
||||
@ -21,10 +24,8 @@
|
||||
#include "rendutil.h"
|
||||
#include "aviwrite.h"
|
||||
|
||||
#include <bgfx/bgfxplatform.h>
|
||||
#include <bgfx/bgfx.h>
|
||||
#include <bx/fpumath.h>
|
||||
#include <bx/readerwriter.h>
|
||||
#include <bgfx/platform.h>
|
||||
#include <algorithm>
|
||||
|
||||
#include "drawbgfx.h"
|
||||
@ -866,7 +867,7 @@ int renderer_bgfx::draw(int update)
|
||||
|
||||
void renderer_bgfx::update_recording()
|
||||
{
|
||||
bgfx::blit(s_current_view > 0 ? s_current_view - 1 : 0, m_avi_texture, 0, 0, m_avi_target->target());
|
||||
bgfx::blit(s_current_view > 0 ? s_current_view - 1 : 0, m_avi_texture, 0, 0, bgfx::getTexture(m_avi_target->target()));
|
||||
bgfx::readTexture(m_avi_texture, m_avi_data);
|
||||
|
||||
int i = 0;
|
||||
@ -1260,7 +1261,7 @@ void renderer_bgfx::allocate_buffer(render_primitive *prim, uint32_t blend, bgfx
|
||||
}
|
||||
}
|
||||
|
||||
if (vertices > 0 && bgfx::checkAvailTransientVertexBuffer(vertices, ScreenVertex::ms_decl))
|
||||
if (vertices > 0 && vertices==bgfx::getAvailTransientVertexBuffer(vertices, ScreenVertex::ms_decl))
|
||||
{
|
||||
bgfx::allocTransientVertexBuffer(buffer, vertices, ScreenVertex::ms_decl);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user