Skip to content

Commit

Permalink
fix(webgl): also disable prefixes in prepareShaderSource()
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jun 29, 2019
1 parent 1bd2829 commit 18ca4b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/webgl/src/shader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
} from "./api";
import { getExtensions } from "./canvas";
import { error } from "./error";
import { GLSL_HEADER, PREFIXES, SYNTAX } from "./glsl/syntax";
import { GLSL_HEADER, NO_PREFIXES, SYNTAX } from "./glsl/syntax";
import { UNIFORM_SETTERS } from "./uniforms";
import { isGL2Context } from "./utils";

Expand Down Expand Up @@ -359,7 +359,7 @@ export const prepareShaderSource = (
version: GLSLVersion
) => {
const syntax = SYNTAX[version];
const prefixes = { ...PREFIXES, ...spec.declPrefixes };
const prefixes = { ...NO_PREFIXES, ...spec.declPrefixes };
const isVS = type === "vs";
let src = "";
src += `#version ${version}\n`;
Expand Down

0 comments on commit 18ca4b5

Please sign in to comment.