mesa: gl_NumSamples should always be at least one
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 16 Feb 2016 06:18:30 +0000 (01:18 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 18 Feb 2016 17:35:28 +0000 (12:35 -0500)
commit12e3ad2ae98a560e2527f4f28423920a15570590
tree032563053372842af0c8e5595a63b2aa28e9bda0
parent65dfb3048e8291675ca33581aeff8921f7ea509d
mesa: gl_NumSamples should always be at least one

From ARB_sample_shading:

    "gl_NumSamples is the total number of samples in the framebuffer,
     or one if rendering to a non-multisample framebuffer"

So make sure to always pass in at least 1.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Edward O`Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Neil Roberts <neil@linux.intel.com>
src/mesa/program/prog_statevars.c