Browse Source

Platform: cleaned up unneeded includes.

Also deinlined pure virtual function implementation.
pull/34/head
Vladimír Vondruš 13 years ago
parent
commit
fea61e60f7
  1. 5
      src/Platform/WindowlessNaClApplication.cpp
  2. 5
      src/Platform/WindowlessNaClApplication.h

5
src/Platform/WindowlessNaClApplication.cpp

@ -26,6 +26,7 @@
#include <ppapi/cpp/graphics_3d.h> #include <ppapi/cpp/graphics_3d.h>
#include <ppapi/cpp/completion_callback.h> #include <ppapi/cpp/completion_callback.h>
#include <Utility/Assert.h>
#include <Utility/NaClStreamBuffer.h> #include <Utility/NaClStreamBuffer.h>
#include "Context.h" #include "Context.h"
@ -112,4 +113,8 @@ bool WindowlessNaClApplication::Init(uint32_t , const char* , const char*) {
return exec() == 0; return exec() == 0;
} }
void WindowlessNaClApplication::Graphics3DContextLost() {
CORRADE_ASSERT(false, "NaClApplication: context unexpectedly lost", );
}
}} }}

5
src/Platform/WindowlessNaClApplication.h

@ -35,7 +35,6 @@
#include <ppapi/cpp/graphics_3d_client.h> #include <ppapi/cpp/graphics_3d_client.h>
#include <ppapi/gles2/gl2ext_ppapi.h> #include <ppapi/gles2/gl2ext_ppapi.h>
#include "Math/Vector2.h"
#include "Magnum.h" #include "Magnum.h"
#include "corradeCompatibility.h" #include "corradeCompatibility.h"
@ -132,9 +131,7 @@ class WindowlessNaClApplication: public pp::Instance, public pp::Graphics3DClien
private: private:
struct ConsoleDebugOutput; struct ConsoleDebugOutput;
void Graphics3DContextLost() override { void Graphics3DContextLost() override;
CORRADE_ASSERT(false, "NaClApplication: context unexpectedly lost", );
}
bool Init(std::uint32_t, const char*, const char*) override; bool Init(std::uint32_t, const char*, const char*) override;

Loading…
Cancel
Save