<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1289</bug_id>
          
          <creation_ts>2016-02-05 09:51:07 +0100</creation_ts>
          <short_desc>Glsl compiler bug on interpolateAtSample</short_desc>
          <delta_ts>2019-03-27 04:16:27 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>opengl</component>
          <version>2.4.0</version>
          <rep_platform>pc_x86_64</rep_platform>
          <op_sys>windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Giuseppe Barbieri">elect86</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5527</commentid>
    <comment_count>0</comment_count>
    <who name="Giuseppe Barbieri">elect86</who>
    <bug_when>2016-02-05 09:51:07 +0100</bug_when>
    <thetext>This FS:

#version 400 core

#define FRAG_COLOR		0

precision highp float;
precision highp int;
layout(std140, column_major) uniform;

uniform sampler2D Diffuse;

in vert
{
	vec2 Texcoord;
	//sample vec2 Texcoord;
} Vert;

layout(location = FRAG_COLOR, index = 0) out vec4 Color;

void main()
{
	Color = texture(Diffuse, interpolateAtSample(Vert.Texcoord, gl_SampleID));
	//Color = texture(Diffuse, Vert.Texcoord);
}


fires

Shader status invalid: 0(21) : error C5229: Argument 1 for interpolateAtSample must have no component selection


This does not happen on C#
Commented lines is a temporary trick to get it working in the meanwhile</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6020</commentid>
    <comment_count>1</comment_count>
    <who name="Giuseppe Barbieri">elect86</who>
    <bug_when>2017-01-18 19:15:18 +0100</bug_when>
    <thetext>It&apos;s an Nvidia glsl compiler bug

https://github.com/g-truc/ogl-samples/issues/68</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>