|
@@ -26,9 +26,11 @@
|
|
|
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
|
|
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|
|
/*************************************************************************/
|
|
|
-#include "drivers/gles2/rasterizer_gles2.h"
|
|
|
+
|
|
|
|
|
|
#include "os_windows.h"
|
|
|
+#include "drivers/gles3/rasterizer_gles3.h"
|
|
|
+
|
|
|
#include "drivers/nedmalloc/memory_pool_static_nedmalloc.h"
|
|
|
#include "drivers/unix/memory_pool_static_malloc.h"
|
|
|
#include "os/memory_pool_dynamic_static.h"
|
|
@@ -42,7 +44,7 @@
|
|
|
|
|
|
#include "servers/visual/visual_server_raster.h"
|
|
|
#include "servers/audio/audio_server_sw.h"
|
|
|
-#include "servers/visual/visual_server_wrap_mt.h"
|
|
|
+//#include "servers/visual/visual_server_wrap_mt.h"
|
|
|
|
|
|
#include "tcp_server_winsock.h"
|
|
|
#include "packet_peer_udp_winsock.h"
|
|
@@ -1079,21 +1081,24 @@ void OS_Windows::initialize(const VideoMode& p_desired,int p_video_driver,int p_
|
|
|
|
|
|
};
|
|
|
|
|
|
-#if defined(OPENGL_ENABLED) || defined(GLES2_ENABLED) || defined(LEGACYGL_ENABLED)
|
|
|
- gl_context = memnew( ContextGL_Win(hWnd,false) );
|
|
|
+#if defined(OPENGL_ENABLED)
|
|
|
+ gl_context = memnew( ContextGL_Win(hWnd,true) );
|
|
|
gl_context->initialize();
|
|
|
- rasterizer = memnew( RasterizerGLES2 );
|
|
|
+
|
|
|
+ RasterizerGLES3::register_config();
|
|
|
+
|
|
|
+ RasterizerGLES3::make_current();
|
|
|
#else
|
|
|
#ifdef DX9_ENABLED
|
|
|
rasterizer = memnew( RasterizerDX9(hWnd) );
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
- visual_server = memnew( VisualServerRaster(rasterizer) );
|
|
|
- if (get_render_thread_mode()!=RENDER_THREAD_UNSAFE) {
|
|
|
-
|
|
|
- visual_server =memnew(VisualServerWrapMT(visual_server,get_render_thread_mode()==RENDER_SEPARATE_THREAD));
|
|
|
- }
|
|
|
+ visual_server = memnew( VisualServerRaster );
|
|
|
+ //if (get_render_thread_mode()!=RENDER_THREAD_UNSAFE) {
|
|
|
+//
|
|
|
+// visual_server =memnew(VisualServerWrapMT(visual_server,get_render_thread_mode()==RENDER_SEPARATE_THREAD));
|
|
|
+// }
|
|
|
|
|
|
//
|
|
|
physics_server = memnew( PhysicsServerSW );
|
|
@@ -1758,7 +1763,7 @@ void OS_Windows::print_error(const char* p_function, const char* p_file, int p_l
|
|
|
case ERR_ERROR: print("ERROR: "); break;
|
|
|
case ERR_WARNING: print("WARNING: "); break;
|
|
|
case ERR_SCRIPT: print("SCRIPT ERROR: "); break;
|
|
|
- case ERR_SCRIPT: print("SHADER ERROR: "); break;
|
|
|
+ case ERR_SHADER: print("SHADER ERROR: "); break;
|
|
|
}
|
|
|
|
|
|
SetConsoleTextAttribute(hCon, current_fg | current_bg | FOREGROUND_INTENSITY);
|