mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
cleanup redundant initialization code
This commit is contained in:
@@ -58,13 +58,6 @@ namespace love {
|
||||
Graphics::Graphics() {
|
||||
}
|
||||
|
||||
void Graphics::initVulkan() {
|
||||
if (!init) {
|
||||
init = true;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// START OVERRIDEN FUNCTIONS
|
||||
|
||||
love::graphics::Buffer* Graphics::newBuffer(const love::graphics::Buffer::Settings& settings, const std::vector<love::graphics::Buffer::DataDeclaration>& format, const void* data, size_t size, size_t arraylength) {
|
||||
|
||||
@@ -23,8 +23,6 @@ namespace love {
|
||||
public:
|
||||
Graphics();
|
||||
|
||||
void initVulkan();
|
||||
|
||||
virtual ~Graphics() = default;
|
||||
|
||||
const char* getName() const override;
|
||||
@@ -95,7 +93,6 @@ namespace love {
|
||||
void setRenderTargetsInternal(const RenderTargets& rts, int pixelw, int pixelh, bool hasSRGBtexture) override { std::cout << "setRenderTargetsInternal "; }
|
||||
|
||||
private:
|
||||
bool init = false;
|
||||
// vulkan specific member functions and variables
|
||||
|
||||
struct QueueFamilyIndices {
|
||||
|
||||
Reference in New Issue
Block a user