# Update information of the topic "Error GLSL 1.50 is not supported"

**URL:** https://discourse.vtk.org/t/update-information-of-the-topic-error-glsl-1-50-is-not-supported/1450
**Category:** Development
**Created:** [July 30, 2019, 1:10pm UTC](https://discourse.vtk.org/t/update-information-of-the-topic-error-glsl-1-50-is-not-supported/1450 "2019-07-30T13:10:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pbazavan](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/p/54ee81/32.png) [@pbazavan](https://discourse.vtk.org/u/pbazavan)
#### Post date: [July 30, 2019, 1:10pm UTC](https://discourse.vtk.org/t/update-information-of-the-topic-error-glsl-1-50-is-not-supported/1450/1 "2019-07-30T13:10:49Z")

</div>

Hello everybody,

I come back to the topic “Error: GLSL 1.50 is not supported”.  
The error “GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES” is generated when the context OpenGL must be initialized.

I use VTK 8.0. Information on my computer is  
OS Ubuntu 16.04.

glxinfo | grep -i version  
server glx version string: 1.4  
client glx version string: 1.4  
GLX version: 1.4  
Version: 18.0.5  
Max core profile version: 3.3  
Max compat profile version: 3.0  
Max GLES1 profile version: 1.1  
Max GLES[23] profile version: 3.0  
OpenGL version string: 3.0 Mesa 18.0.5  
OpenGL shading language version string: 1.30

A simplified version of my program is

#include “vtkActor.h”  
#include “vtkRenderer.h”  
#include “vtkPolyData.h”  
#include “vtkPolyDataMapper.h”  
#include “vtkProperty.h”  
#include \<vtkRenderingOpenGL2Module.h\>  
#include \<vtkInteractionStyleModule.h\>  
#include \<vtkGenericDataObjectReader.h\>  
#include   
#include \<QVTKOpenGLWidget.h\>  
#include \<vtkGenericOpenGLRenderWindow.h\>  
#include \<vtkCubeSource.h\>  
#include \<vtkAutoInit.h\>

VTK\_MODULE\_INIT (vtkRenderingOpenGL2);  
VTK\_MODULE\_INIT (vtkInteractionStyle);

int main(int argc, char\*\* argv)  
{  
QApplication app( argc, argv );  
QVTKOpenGLWidget widget;  
widget.resize(640,384);

```
vtkGenericOpenGLRenderWindow *renderWindow = vtkGenericOpenGLRenderWindow::New();

```

vtkRenderer \*renderer = vtkRenderer::New();  
vtkCubeSource _cubeSource = vtkCubeSource::New();  
vtkPolyDataMapper_ g\_mapper = vtkPolyDataMapper::New();  
g\_mapper-\>SetInputConnection(cubeSource-\>GetOutputPort());

vtkActor \*actor = vtkActor::New();  
actor -\>SetMapper(g\_mapper);  
actor-\>GetProperty()-\>SetColor (1,0,0);  
actor-\>GetProperty()-\>SetRepresentationToSurface();

renderer-\>AddActor(actor);  
renderer-\>SetBackground(0.2, 0.4, 0.8);

renderWindow-\>AddRenderer(renderer);

widget.SetRenderWindow(renderWindow);  
widget.show();  
app.exec();

renderWindow-\>Delete();  
renderer-\>Delete();  
actor-\>Delete();  
g\_mapper-\>Delete();

return 0;  
}

Any suggestion is appreciated.
