There's now more checks to prevent crashing when the mapped buffer is actually null, like when running with the dummy backend.
19 lines
No EOL
367 B
C++
Executable file
19 lines
No EOL
367 B
C++
Executable file
#include "gfx_dummy.hpp"
|
|
|
|
#include "gfx_commandbuffer.hpp"
|
|
|
|
bool GFXDummy::is_supported() {
|
|
return true;
|
|
}
|
|
|
|
const char* GFXDummy::get_name() {
|
|
return "Dummy";
|
|
}
|
|
|
|
bool GFXDummy::initialize(const GFXCreateInfo& createInfo) {
|
|
return true;
|
|
}
|
|
|
|
GFXCommandBuffer* GFXDummy::acquire_command_buffer(bool for_presentation_use) {
|
|
return new GFXCommandBuffer();
|
|
} |