Skip to content

Commit

Permalink
fixing on error behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
patriciogonzalezvivo committed Apr 8, 2023
1 parent 7e7797e commit 22cbef0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/gv_preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def fetch_pref(name: str):
#ifdef MODEL_VERTEX_TEXCOORD
attribute vec2 a_texcoord;
varying vec2 v_texcoord;
#endif
varying vec2 v_texcoord;
#ifdef MODEL_VERTEX_TANGENT
attribute vec4 a_tangent;
Expand All @@ -49,8 +49,8 @@ def fetch_pref(name: str):
#endif
void main(void) {
v_position = u_modelMatrix * a_position;
v_texcoord = v_position.xy;
#ifdef MODEL_VERTEX_COLOR
v_color = a_color;
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ int main(int argc, char **argv) {
if (window_properties.style != vera::HEADLESS) {
vera::setWindowTitle("GlslViewer");

#if defined(DRIVER_GLFW)
#if defined(DRIVER_GLFW) && defined(PLATFORM_LINUX)
int icon_width, icon_height;
unsigned char* icon_data = vera::loadPixelsBase64(icon_base64, &icon_width, &icon_height);
vera::setWindowIcon(icon_data, icon_width, icon_height);
Expand Down

0 comments on commit 22cbef0

Please sign in to comment.