Browse Source

Disable the deprecation warning also for MSVC.

I long for the day when I can remove the old texture API.
pull/107/head
Vladimír Vondruš 11 years ago
parent
commit
06f938fed8
  1. 7
      src/Magnum/Framebuffer.cpp

7
src/Magnum/Framebuffer.cpp

@ -250,6 +250,10 @@ Framebuffer& Framebuffer::attachTextureLayer(Framebuffer::BufferAttachment attac
#endif
#ifdef MAGNUM_BUILD_DEPRECATED
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4996) /* deprecated warning */
#endif
Framebuffer& Framebuffer::attachTexture2D(BufferAttachment attachment, Texture2D& texture, Int mipLevel) {
#ifdef __GNUC__
#pragma GCC diagnostic push
@ -261,6 +265,9 @@ Framebuffer& Framebuffer::attachTexture2D(BufferAttachment attachment, Texture2D
#endif
return *this;
}
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#endif
void Framebuffer::renderbufferImplementationDefault(BufferAttachment attachment, Renderbuffer& renderbuffer) {

Loading…
Cancel
Save