diff --git a/include/SFML/Graphics/RenderTexture.hpp b/include/SFML/Graphics/RenderTexture.hpp index 1fdd4e89..64c6261b 100644 --- a/include/SFML/Graphics/RenderTexture.hpp +++ b/include/SFML/Graphics/RenderTexture.hpp @@ -66,28 +66,6 @@ public: //////////////////////////////////////////////////////////// ~RenderTexture() override; - //////////////////////////////////////////////////////////// - /// \brief Create the render-texture - /// - /// Before calling this function, the render-texture is in - /// an invalid state, thus it is mandatory to call it before - /// doing anything with the render-texture. - /// The last parameter, \a depthBuffer, is useful if you want - /// to use the render-texture for 3D OpenGL rendering that requires - /// a depth buffer. Otherwise it is unnecessary, and you should - /// leave this parameter to false (which is its default value). - /// - /// \param width Width of the render-texture - /// \param height Height of the render-texture - /// \param depthBuffer Do you want this render-texture to have a depth buffer? - /// - /// \return True if creation has been successful - /// - /// \deprecated Use create(unsigned int, unsigned int, const ContextSettings&) instead. - /// - //////////////////////////////////////////////////////////// - [[deprecated]] bool create(unsigned int width, unsigned int height, bool depthBuffer); - //////////////////////////////////////////////////////////// /// \brief Create the render-texture /// diff --git a/src/SFML/Graphics/RenderTexture.cpp b/src/SFML/Graphics/RenderTexture.cpp index cdb7b280..0243d29e 100644 --- a/src/SFML/Graphics/RenderTexture.cpp +++ b/src/SFML/Graphics/RenderTexture.cpp @@ -48,13 +48,6 @@ RenderTexture::~RenderTexture() } -//////////////////////////////////////////////////////////// -bool RenderTexture::create(unsigned int width, unsigned int height, bool depthBuffer) -{ - return create(width, height, ContextSettings(depthBuffer ? 32 : 0)); -} - - //////////////////////////////////////////////////////////// bool RenderTexture::create(unsigned int width, unsigned int height, const ContextSettings& settings) {