Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sf::RenderTexture in a thread  (Read 988 times)

0 Members and 1 Guest are viewing this topic.

Janacek

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • Email
sf::RenderTexture in a thread
« on: December 18, 2013, 02:22:03 am »
Hi,

I've created a thread wich handles the graphic part of my program.
But I want to create a sf::RenderTexture in the main thread. I read in SFML tutorial that if we want to load texture in another thread we can do it by instanciating a sf::Context in the scope. When I want to call the "create" function of my renderTexture I have an openGL error.

What could be the error ?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
AW: Re: sf::RenderTexture in a thread
« Reply #1 on: December 18, 2013, 07:45:27 am »
What could be the error ?
Do you expect us to guess your error? ;D
Post a complete and minimsl example that reproduces the error and post the error itself - most of us don't like error/code guessing games. ;)

Also make sure to read the SFML 2.1 tutorials.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/