message: style/cleanups
  [ci skip]
diff: @@ -50,15 +50,16 @@ GLuint tex[2];
  std::atomic<unsigned> current_texture {0};
  std::atomic<bool> init {false};
  -void create_textures() {
  +static void create_textures()
  +{
  if(!init) glGenTextures(2, tex);
  init = true;
  }
  -void transfertexture(GLsizei width, GLsizei height,
  +static void transfertexture(GLsizei width, GLsizei height,
  GLenum format, GLenum type,
  - const GLvoid *pixels) {
  -
  + const GLvoid *pixels)
  +{
  unsigned next = (current_texture + 1) & 1;
  glTexImage2D(GL_TEXTURE_2D, 0, format, width, height, 0, format,
  @@ -71,8 +72,8 @@ void transfertexture(GLsizei width, GLsizei height,
  next++;
  }
  -void drawquad(GLsizei width, GLsizei height) {
  -
  +static void drawquad(GLsizei width, GLsizei height)
  +{
  unsigned ctex = current_texture & 1;
  glMatrixMode(GL_PROJECTION);
  @@ -92,7 +93,6 @@ void drawquad(GLsizei width, GLsizei height) {
  glBindTexture(GL_TEXTURE_2D, tex[ctex]);
  glEnable(GL_TEXTURE_2D);
  -
  // Draw a textured quad
  glBegin(GL_QUADS);
  glTexCoord2f(0, 0); glVertex3f(0, 0, 0);
  @@ -111,9 +111,6 @@ void drawquad(GLsizei width, GLsizei height) {
  glPopMatrix();
  glMatrixMode(GL_MODELVIEW);
  -
  -
  -
  }
  #if 0
  @@ -123,17 +120,14 @@ extern "C" void glDrawPixels( GLsizei width, GLsizei height,
  #else
  void glDrawPixels(GLsizei width, GLsizei height,
  GLenum format, GLenum type,
  - const GLvoid *pixels ) {
  -
  + const GLvoid *pixels)
  +{
  create_textures();
  transfertexture(width,height,format,type,pixels);
  drawquad(width,height);
  -
  -
  }
  #endif
  -
  using ospcommon::utility::getEnvVar;
  namespace ospray {
  