Remove this shared pointer nonsense
This commit is contained in:
@@ -105,9 +105,6 @@ SDL_Palette* SNESPalette::GetSDL_Palette() {
|
||||
<< " G:" << color[i].g << " B:" << color[i].b << ")" << std::endl;
|
||||
}
|
||||
sdl_palette->colors = color.data();
|
||||
|
||||
// store the pointers to free them later
|
||||
sdl_palettes_.push_back(sdl_palette);
|
||||
colors_.push_back(color);
|
||||
|
||||
return sdl_palette.get();
|
||||
|
||||
@@ -40,7 +40,6 @@ class SNESPalette {
|
||||
|
||||
int size_ = 0;
|
||||
std::vector<SNESColor> colors;
|
||||
std::vector<std::shared_ptr<SDL_Palette>> sdl_palettes_;
|
||||
std::vector<SDL_Color*> colors_arrays_;
|
||||
std::vector<std::vector<SDL_Color>> colors_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user