1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-30 23:29:08 +00:00

Fixed aspect ratio storage. Adjusted indentation slightly.

This commit is contained in:
Thomas Harte 2016-05-01 16:49:44 -04:00
parent 6982e945fb
commit 69984b54e5

View File

@ -85,7 +85,7 @@ void TextureTarget::draw(float aspect_ratio)
"void main(void)" "void main(void)"
"{" "{"
"fragColour = texture(texID, texCoordVarying);" "fragColour = vec4(0.5);"//texture(texID, texCoordVarying);"
"}"; "}";
_pixel_shader = std::unique_ptr<Shader>(new Shader(vertex_shader, fragment_shader, nullptr)); _pixel_shader = std::unique_ptr<Shader>(new Shader(vertex_shader, fragment_shader, nullptr));
@ -111,7 +111,7 @@ void TextureTarget::draw(float aspect_ratio)
if(_set_aspect_ratio != aspect_ratio) if(_set_aspect_ratio != aspect_ratio)
{ {
aspect_ratio = _set_aspect_ratio; _set_aspect_ratio = aspect_ratio;
int8_t buffer[12*4]; int8_t buffer[12*4];
// establish texture coordinates // establish texture coordinates