{"action":"closed","issue":{"url":"https://api.github.com/repos/ljfc/oglsuperbible5/issues/33","labels_url":"https://api.github.com/repos/ljfc/oglsuperbible5/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/ljfc/oglsuperbible5/issues/33/comments","events_url":"https://api.github.com/repos/ljfc/oglsuperbible5/issues/33/events","html_url":"https://github.com/ljfc/oglsuperbible5/issues/33","id":115698052,"number":33,"title":"Chapter 6 - Dissolve - won't load the texture.","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ljfc/oglsuperbible5/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/ljfc/oglsuperbible5/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/ljfc/oglsuperbible5/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-07T23:01:59Z","updated_at":"2015-11-08T12:04:56Z","closed_at":"2015-11-08T12:04:56Z","body":"```\nWhat steps will reproduce the problem?\n1. Compile the program (Dissolve - Chapter 6)\n2. Run the program\n3.\n\nWhat is the expected output? What do you see instead?\nI should see a \"melting torus\". I see a black window.\n\n\nWhat version of the product are you using? On what operating system?\nrevision 193. Running Linux Ubuntu 11.04 desktop 64bit.\n\n\nPlease provide any additional information below.\n\nThe problem is that the program doesn't use the texture. The problem is in the \nline 143 of Dissolve.cpp file. It should be\n                glUniform1i(locTexture, 0);\ninstead is\n                glUniform1i(locTexture, 1);\n\nSo the fragment shader cannot use the texture and uses instead a null vector \nall the time. When comparing the texture color value (that is 0 0 0 0) to the \ndissolveFactor, the comparison is always false, so the fragment goes on discard \nfor every pixel all the time. The result is a black window.\n\n\n```\n\nOriginal issue reported on code.google.com by `matteo....@gmail.com` on 22 Aug 2011 at 12:43"}}