Skip to content

Commit

Permalink
#6081: Remove unused RENDER_POINT_COLOUR flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Sep 3, 2022
1 parent 1a84144 commit 859a4b2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions include/irender.h
Expand Up @@ -83,12 +83,10 @@ const unsigned RENDER_FILL = 1 << 14;
const unsigned RENDER_VERTEX_COLOUR = 1 << 15;

/**
* If enabled, point geometry may submit colours for each point. If disabled,
* point geometry must not change colour during rendering.
*
* Does not affect GL state.
* If enabled, the renderer will apply the state's colour by calling glColor.
* If not enabled, a white colour will be used.
*/
const unsigned RENDER_POINT_COLOUR = 1 << 16;
const unsigned RENDER_COLOUR = 1 << 16;

/// GL_TEXTURE_2D will be enabled during rendering.
const unsigned RENDER_TEXTURE_2D = 1 << 17;
Expand Down
2 changes: 1 addition & 1 deletion include/version.h
Expand Up @@ -4,7 +4,7 @@
#include <config.h>
#define RADIANT_VERSION PACKAGE_VERSION
#else
#define RADIANT_VERSION "3.2.0"
#define RADIANT_VERSION "3.3.0pre1"
#endif

#define RADIANT_APPNAME "DarkRadiant"
Expand Down
3 changes: 1 addition & 2 deletions radiant/camera/CamWnd.cpp
Expand Up @@ -744,8 +744,7 @@ void CamWnd::Cam_Draw()
| RENDER_BLEND
| RENDER_CULLFACE
| RENDER_OFFSETLINE
| RENDER_VERTEX_COLOUR
| RENDER_POINT_COLOUR;
| RENDER_VERTEX_COLOUR;

// Add mode-specific render flags
switch (getCameraSettings()->getRenderMode())
Expand Down
2 changes: 1 addition & 1 deletion radiant/xyview/XYWnd.cpp
Expand Up @@ -1353,7 +1353,7 @@ void XYWnd::draw()

glLoadMatrixd(_modelView);

unsigned int flagsMask = RENDER_POINT_COLOUR | RENDER_VERTEX_COLOUR;
unsigned int flagsMask = RENDER_VERTEX_COLOUR;

if (!getCameraSettings()->solidSelectionBoxes())
{
Expand Down
1 change: 0 additions & 1 deletion radiantcore/rendersystem/backend/BuiltInShader.cpp
Expand Up @@ -378,7 +378,6 @@ void BuiltInShader::constructCameraMergeActionOverlay(OpenGLState& pass, const C

void BuiltInShader::constructPointShader(OpenGLState& pass, float pointSize, OpenGLState::SortPosition sort)
{
pass.setRenderFlag(RENDER_POINT_COLOUR);
pass.setRenderFlag(RENDER_DEPTHWRITE);

pass.setSortPosition(sort);
Expand Down

0 comments on commit 859a4b2

Please sign in to comment.