forked from Kolyah35/minecraft-pe-0.6.1
left a debug opengl only feature accidentally in, and also hopefully fixed include mess
This commit is contained in:
@@ -92,6 +92,9 @@
|
|||||||
#include "gamemode/CreatorMode.h"
|
#include "gamemode/CreatorMode.h"
|
||||||
|
|
||||||
#include "../world/level/GrassColor.h"
|
#include "../world/level/GrassColor.h"
|
||||||
|
#include "renderer/LevelRenderer.h"
|
||||||
|
#include "particle/ParticleEngine.h"
|
||||||
|
#include "../world/level/Level.h"
|
||||||
static void checkGlError(const char* tag) {
|
static void checkGlError(const char* tag) {
|
||||||
#ifdef GLDEBUG
|
#ifdef GLDEBUG
|
||||||
while (1) {
|
while (1) {
|
||||||
@@ -848,12 +851,6 @@ void Minecraft::tickInput() {
|
|||||||
//glPolygonMode(GL_BACK, isWireFrame? GL_LINE : GL_FILL);
|
//glPolygonMode(GL_BACK, isWireFrame? GL_LINE : GL_FILL);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (key == Keyboard::KEY_P) {
|
|
||||||
static bool isWireFrame = false;
|
|
||||||
isWireFrame = !isWireFrame;
|
|
||||||
glPolygonMode(GL_FRONT, isWireFrame? GL_LINE : GL_FILL);
|
|
||||||
//glPolygonMode(GL_BACK, isWireFrame? GL_LINE : GL_FILL);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
if (key == Keyboard::KEY_M) {
|
if (key == Keyboard::KEY_M) {
|
||||||
|
|||||||
Reference in New Issue
Block a user