mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:44:21 +02:00
fixes broken debug code
This commit is contained in:
parent
ecddf9aa76
commit
fcec7bf62f
1 changed files with 4 additions and 2 deletions
|
@ -543,7 +543,9 @@ namespace
|
|||
|
||||
// fprintf(stderr, "Stars.cpp: starting on tile #%d\n", tile_index);
|
||||
|
||||
#ifdef SEE_LOD // define to peek behind the scenes
|
||||
// #define SEE_LOD // define to peek behind the scenes
|
||||
|
||||
#ifdef SEE_LOD
|
||||
mat4 matrix_debug = glm::translate(
|
||||
glm::frustum(-hw,hw, -hh,hh, near,10.0f),
|
||||
vec3(0.0f, 0.0f, -4.0f)) * glm::affineInverse(matrix);
|
||||
|
@ -562,7 +564,7 @@ namespace
|
|||
(Tile**) arr_batch_count));
|
||||
|
||||
#ifdef SEE_LOD
|
||||
#define matrix debug_matrix
|
||||
#define matrix matrix_debug
|
||||
#endif
|
||||
this->glBatch(glm::value_ptr(matrix), prepareBatch(
|
||||
(unsigned*) arr_batch_offs, itr_out_index) );
|
||||
|
|
Loading…
Reference in a new issue