Commit 5eb38ec2 authored by Maciej Sumiński's avatar Maciej Sumiński
Browse files

Made shaders compatible with Intel GPUs.

parent bc8ea550
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -25,14 +25,13 @@
 */
 */


#version 120
#version 120
//#pragma debug(on)


// Shader types
// Shader types
const float SHADER_LINE                 = 1.0;
const float SHADER_LINE                 = 1.0;
const float SHADER_FILLED_CIRCLE        = 2.0;
const float SHADER_FILLED_CIRCLE        = 2.0;
const float SHADER_STROKED_CIRCLE       = 3.0;
const float SHADER_STROKED_CIRCLE       = 3.0;


varying in vec4 shaderParams;
varying vec4 shaderParams;


void filledCircle( vec2 aCoord )
void filledCircle( vec2 aCoord )
{
{
+2 −2
Original line number Original line Diff line number Diff line
@@ -32,7 +32,7 @@ const float SHADER_FILLED_CIRCLE = 2.0;
const float SHADER_STROKED_CIRCLE       = 3.0;
const float SHADER_STROKED_CIRCLE       = 3.0;


attribute vec4 attrShaderParams;
attribute vec4 attrShaderParams;
varying out vec4 shaderParams;
varying vec4 shaderParams;


void main()
void main()
{
{