Sounds like your texture/UV coordinates is the problem.
Yeah it seems so, I am loading my texture like this :
texture = new sf::Texture();
if(!texture->loadFromFile("textures/simple.jpeg",sf::IntRect(0, 0, 128, 128)))
std::cout << "Error loading texture !!" << std::endl;
glGenBuffers(1, &color_array_buffer);
glBindBuffer(GL_ARRAY_BUFFER, color_array_buffer);
glBufferData(GL_ARRAY_BUFFER, vertices_size*sizeof(GLfloat), color, GL_STATIC_DRAW);
and my UV thing is this :
std::vector<GLfloat> texture_default = {
0.0f, 0.0f,
// Top-left
0.0f, 128.0f,
// Top-right
128.0f, 0.0f,
// Bottom-right
128.0f, 128.0f,
// Bottom-left
};
I cannot figure out where i am wrong, notice that i don't really care about wher is my "bottom left" i wil change that later to have a proper position of my texture .